builder/amazon/chroot: put device in state bag
This commit is contained in:
parent
b4435f6890
commit
bbcb2ea46b
|
@ -13,7 +13,7 @@ import (
|
||||||
// available device location.
|
// available device location.
|
||||||
//
|
//
|
||||||
// Produces:
|
// Produces:
|
||||||
// volume_id string - The ID of the created volume
|
// device string - The location where the volume was attached.
|
||||||
type StepAttachVolume struct {
|
type StepAttachVolume struct {
|
||||||
attached bool
|
attached bool
|
||||||
volumeId string
|
volumeId string
|
||||||
|
@ -68,6 +68,7 @@ func (s *StepAttachVolume) Run(state map[string]interface{}) multistep.StepActio
|
||||||
return multistep.ActionHalt
|
return multistep.ActionHalt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state["device"] = device
|
||||||
return multistep.ActionContinue
|
return multistep.ActionContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue