Avoid nil map assign in aws instance migrateStateV0toV1

This commit is contained in:
Ross McFarland 2015-09-26 12:23:50 -07:00
parent 6bd40a7bf4
commit 0b66da1cd0
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func resourceAwsInstanceMigrateState(
}
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.")
return is, nil
}