We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f29df9 commit e730103Copy full SHA for e730103
internal/backend/backendbase/base.go
@@ -57,6 +57,13 @@ func (b Base) ConfigSchema() *configschema.Block {
57
func (b Base) PrepareConfig(configVal cty.Value) (cty.Value, tfdiags.Diagnostics) {
58
var diags tfdiags.Diagnostics
59
60
+ if configVal.IsNull() {
61
+ // We expect the backend configuration to be an object, so if it's
62
+ // null for some reason (e.g. because of an interrupt), we'll turn
63
+ // it into an empty object so that we can still coerce it
64
+ configVal = cty.EmptyObjectVal
65
+ }
66
+
67
schema := b.Schema
68
69
v, err := schema.CoerceValue(configVal)
0 commit comments