From 005f7e56a71fdd68356b81b6e677cc54e85650d1 Mon Sep 17 00:00:00 2001 From: Andrei Ozerov Date: Thu, 24 May 2018 13:49:33 +0300 Subject: [PATCH] OpenStack builder: cleanup blockDeviceMappingV2 There is no need to indicate type of the list elements, remove it. --- builder/openstack/step_run_source_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,