Merge pull request #4972 from hashicorp/new4835

builder/ebssurrogate: Use correct devices for AMI.
This commit is contained in:
Matthew Hooker 2017-06-06 12:35:53 -07:00 committed by GitHub
commit ce0b19b495
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
}, },
&StepRegisterAMI{ &StepRegisterAMI{
RootDevice: b.config.RootDevice, RootDevice: b.config.RootDevice,
BlockDevices: b.config.BlockDevices.BuildLaunchDevices(), BlockDevices: b.config.BlockDevices.BuildAMIDevices(),
}, },
&awscommon.StepCreateEncryptedAMICopy{ &awscommon.StepCreateEncryptedAMICopy{
KeyID: b.config.AMIKmsKeyId, KeyID: b.config.AMIKmsKeyId,