fix: remove pointer when vm is getting
This commit is contained in:
parent
cf1fdfef00
commit
571ef828e6
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue