Merge pull request #5173 from rickard-von-essen/cloudstack-fixes

cloudstack: Move ipaddress, host port, and source to statebag
This commit is contained in:
Rickard von Essen
2017-09-05 06:29:22 +02:00
committed by GitHub
6 changed files with 54 additions and 49 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ func (s *stepCreateInstance) Run(state multistep.StateBag) multistep.StepAction
// Create a new parameter struct.
p := client.VirtualMachine.NewDeployVirtualMachineParams(
config.ServiceOffering,
config.instanceSource,
state.Get("source").(string),
config.Zone,
)
@@ -140,7 +140,7 @@ func (s *stepCreateInstance) Run(state multistep.StateBag) multistep.StepAction
// Set the host address when using the local IP address to connect.
if config.UseLocalIPAddress {
config.hostAddress = instance.Nic[0].Ipaddress
state.Put("ipaddress", instance.Nic[0].Ipaddress)
}
// Store the instance ID so we can remove it later.