Avoid nil map assign in aws instance migrateStateV0toV1
This commit is contained in:
parent
6bd40a7bf4
commit
0b66da1cd0
|
@ -24,7 +24,7 @@ func resourceAwsInstanceMigrateState(
|
||||||
}
|
}
|
||||||
|
|
||||||
func migrateStateV0toV1(is *terraform.InstanceState) (*terraform.InstanceState, error) {
|
func migrateStateV0toV1(is *terraform.InstanceState) (*terraform.InstanceState, error) {
|
||||||
if is.Empty() {
|
if is.Empty() || is.Attributes == nil {
|
||||||
log.Println("[DEBUG] Empty InstanceState; nothing to migrate.")
|
log.Println("[DEBUG] Empty InstanceState; nothing to migrate.")
|
||||||
return is, nil
|
return is, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue