This commit is contained in:
Megan Marsh 2018-01-17 16:25:38 -08:00 committed by Matthew Hooker
parent 46c3113613
commit 8b420944c5
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ type Config struct {
// Image
ImageName string `mapstructure:"image_name"`
Shape string `mapstructure:"shape"`
ImageList string `json:"image_list"`
ImageList string `mapstructure:"image_list"`
ctx interpolate.Context
}

View File

@ -14,7 +14,7 @@ func (s *stepCreateInstance) Run(state multistep.StateBag) multistep.StepAction
// get variables from state
ui := state.Get("ui").(packer.Ui)
ui.Say("Creating Instance...")
config := state.Get("config").(Config)
config := state.Get("config").(*Config)
client := state.Get("client").(*compute.ComputeClient)
sshPublicKey := state.Get("publicKey").(string)

View File

@ -14,7 +14,7 @@ func (s *stepSnapshot) Run(state multistep.StateBag) multistep.StepAction {
// get variables from state
ui := state.Get("ui").(packer.Ui)
ui.Say("Creating Snapshot...")
config := state.Get("config").(Config)
config := state.Get("config").(*Config)
client := state.Get("client").(*compute.ComputeClient)
instanceID := state.Get("instance_id").(string)