Skip to content

Commit 00b76f4

Browse files
committed
actual fix
1 parent c7ab8a5 commit 00b76f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

helper/resource/testing_new_import_state.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,12 @@ func appendImportBlockWithIdentity(config string, resourceName string, identityV
458458

459459
case string:
460460
configBuilder += fmt.Sprintf(` %q = %q`+"\n", k, v)
461-
462461
default:
462+
// It's valid for identity attributes to be null, we can just omit it from config
463+
if v == nil {
464+
break
465+
}
466+
463467
panic(fmt.Sprintf("unexpected type %T for identity value %q", v, k))
464468
}
465469
}

0 commit comments

Comments
 (0)