mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-27 18:24:01 -04:00
cloudstack: moved instanceSource to statebag
This commit is contained in:
@@ -30,13 +30,14 @@ func (s *stepCreateInstance) Run(state multistep.StateBag) multistep.StepAction
|
||||
client := state.Get("client").(*cloudstack.CloudStackClient)
|
||||
config := state.Get("config").(*Config)
|
||||
ui := state.Get("ui").(packer.Ui)
|
||||
source := state.Get("source").(string)
|
||||
|
||||
ui.Say("Creating instance...")
|
||||
|
||||
// Create a new parameter struct.
|
||||
p := client.VirtualMachine.NewDeployVirtualMachineParams(
|
||||
config.ServiceOffering,
|
||||
config.instanceSource,
|
||||
source,
|
||||
config.Zone,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user