fix: remove pointer when vm is getting

This commit is contained in:
Marin Salinas 2019-03-06 14:07:35 -06:00 committed by Megan Marsh
parent cf1fdfef00
commit 571ef828e6
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ type StepSnapshotVolumes struct {
func (s *StepSnapshotVolumes) snapshotVolume(ctx context.Context, deviceName string, state multistep.StateBag) error { func (s *StepSnapshotVolumes) snapshotVolume(ctx context.Context, deviceName string, state multistep.StateBag) error {
oapiconn := state.Get("oapi").(*oapi.Client) oapiconn := state.Get("oapi").(*oapi.Client)
ui := state.Get("ui").(packer.Ui) ui := state.Get("ui").(packer.Ui)
vm := state.Get("vm").(*oapi.Vm) vm := state.Get("vm").(oapi.Vm)
var volumeId string var volumeId string
for _, volume := range vm.BlockDeviceMappings { for _, volume := range vm.BlockDeviceMappings {