diff --git a/builder/openstack/step_run_source_server.go b/builder/openstack/step_run_source_server.go index 8b9b312bc..e56218467 100644 --- a/builder/openstack/step_run_source_server.go +++ b/builder/openstack/step_run_source_server.go @@ -83,7 +83,7 @@ func (s *StepRunSourceServer) Run(_ context.Context, state multistep.StateBag) m if s.UseBlockStorageVolume { volume := state.Get("volume_id").(string) blockDeviceMappingV2 := []bootfromvolume.BlockDevice{ - bootfromvolume.BlockDevice{ + { BootIndex: 0, DestinationType: bootfromvolume.DestinationVolume, SourceType: bootfromvolume.SourceVolume,