command: fix regressions for state mv with count resource

This commit is contained in:
Mitchell Hashimoto 2016-08-19 12:09:19 -04:00
parent 0d1ea84d39
commit 43cfd3d1c9
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,11 @@ func (c *StateMvCommand) addableResult(results []*terraform.StateFilterResult) i
}
}
// If we only have one item, add it directly
if len(result) == 1 {
return result[0]
}
return result
default: