command: correct outdated comment

This commit is contained in:
Mitchell Hashimoto 2016-08-19 23:56:27 -04:00
parent 43cfd3d1c9
commit d3792e4aef
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,8 @@ func (c *StateMvCommand) addableResult(results []*terraform.StateFilterResult) i
return result
case *terraform.ResourceState:
// If a module state then we should add the full list of modules
// If a resource state with more than one result, it has a multi-count
// and we need to add all of them.
result := []*terraform.ResourceState{v}
if len(results) > 1 {
for _, r := range results[1:] {