Skip to content

Commit

Permalink
enhanced_security_compliance block: return nil if not defined in Terr…
Browse files Browse the repository at this point in the history
…aform config

To fix 400 error on workspace creation
  • Loading branch information
gerrytan committed Oct 30, 2024
1 parent 2586aba commit 1b129ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ func expandWorkspaceEnhancedSecurity(input []interface{}) *workspaces.EnhancedSe
var config map[string]interface{}

if len(input) == 0 || input[0] == nil {
config = make(map[string]interface{})
return nil
} else {
config = input[0].(map[string]interface{})
}
Expand Down

0 comments on commit 1b129ac

Please sign in to comment.