builder/amazon/chroot: put device in state bag

This commit is contained in:
Mitchell Hashimoto 2013-07-29 19:10:20 -07:00
parent b4435f6890
commit bbcb2ea46b
1 changed files with 2 additions and 1 deletions

View File

@ -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
}