Explicitly specify `zoneid` in CloudStack's `associateIpAddress` call (#4995)

Generally speaking, this must be harmless since the IP address
and the virtual machine need to be deployed to the same zone.
This commit is contained in:
Yamashita, Yuu 2017-06-10 04:11:52 +09:00 committed by Sander van Harmelen
parent 056104ace4
commit ab4636ae0f
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ func (s *stepSetupNetworking) Run(state multistep.StateBag) multistep.StepAction
p.SetNetworkid(network.Id)
}
p.SetZoneid(config.Zone)
// Associate a new public IP address.
ipAddr, err := client.Address.AssociateIpAddress(p)
if err != nil {