OpenStack builder: cleanup blockDeviceMappingV2

There is no need to indicate type of the list elements, remove it.
This commit is contained in:
Andrei Ozerov 2018-05-24 13:49:33 +03:00 committed by Rickard von Essen
parent df74951309
commit 005f7e56a7
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (s *StepRunSourceServer) Run(_ context.Context, state multistep.StateBag) m
if s.UseBlockStorageVolume { if s.UseBlockStorageVolume {
volume := state.Get("volume_id").(string) volume := state.Get("volume_id").(string)
blockDeviceMappingV2 := []bootfromvolume.BlockDevice{ blockDeviceMappingV2 := []bootfromvolume.BlockDevice{
bootfromvolume.BlockDevice{ {
BootIndex: 0, BootIndex: 0,
DestinationType: bootfromvolume.DestinationVolume, DestinationType: bootfromvolume.DestinationVolume,
SourceType: bootfromvolume.SourceVolume, SourceType: bootfromvolume.SourceVolume,