diff --git a/builder/amazon/chroot/step_attach_volume.go b/builder/amazon/chroot/step_attach_volume.go index eee9ad828..b380420b7 100644 --- a/builder/amazon/chroot/step_attach_volume.go +++ b/builder/amazon/chroot/step_attach_volume.go @@ -13,7 +13,7 @@ import ( // available device location. // // Produces: -// volume_id string - The ID of the created volume +// device string - The location where the volume was attached. type StepAttachVolume struct { attached bool volumeId string @@ -68,6 +68,7 @@ func (s *StepAttachVolume) Run(state map[string]interface{}) multistep.StepActio return multistep.ActionHalt } + state["device"] = device return multistep.ActionContinue }