refactor GetSchemas to include an option to pass in a config

This commit is contained in:
Megan Bang
2022-08-29 11:32:14 -05:00
parent 40263cd861
commit b572e57fb3
11 changed files with 16 additions and 45 deletions

View File

@@ -121,7 +121,7 @@ func (c *StateRmCommand) Run(args []string) int {
// Get schemas, if possible, before writing state
var schemas *terraform.Schemas
if isCloudMode(b) {
schemas, diags = c.GetSchemas(state)
schemas, diags = c.GetSchemas(state, nil)
if diags.HasErrors() {
c.Ui.Warn(fmt.Sprintf(failedToLoadSchemasMessage, err))
}