From af492621deb0b953bf95f787469a9df80f1b2f0e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 29 Jul 2013 19:10:20 -0700 Subject: [PATCH] builder/amazon/chroot: put device in state bag --- builder/amazon/chroot/step_attach_volume.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }