Commit bbcb2ea4 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon/chroot: put device in state bag

parent b4435f68
...@@ -13,7 +13,7 @@ import ( ...@@ -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 ...@@ -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
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment