mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
update to warn if schemas aren't available
This commit is contained in:
@@ -251,10 +251,7 @@ func (c *ImportCommand) Run(args []string) int {
|
||||
// Get schemas, if possible, before writing state
|
||||
schemas, diags := getSchemas(&c.Meta, newState, config)
|
||||
if diags.HasErrors() {
|
||||
// MBANG TODO - add warning that the schema could not be initialized
|
||||
// and therefore the JSON state can not be created and may affect
|
||||
// external applications relying on that data format
|
||||
return 1
|
||||
c.Ui.Warn(fmt.Sprintf(failedToLoadSchemasMessage, err))
|
||||
}
|
||||
|
||||
// Persist the final state
|
||||
|
||||
Reference in New Issue
Block a user