mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-15 01:53:51 -06:00
command: fix regressions for state mv with count resource
This commit is contained in:
parent
0d1ea84d39
commit
43cfd3d1c9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user