Get new server object after adding floating IP

We need a new server object once we add the floating ip, otherwise we
will be operating with the older server object pre-floating-ip
assignment.
This commit is contained in:
Timothy R. Chavez 2015-12-09 19:11:10 -06:00 committed by Matt Clay
parent 325a979876
commit 37ac954123

View file

@ -154,7 +154,7 @@ def main():
msg="server {0} not found".format(server_name_or_id))
if state == 'present':
cloud.add_ips_to_server(
server = cloud.add_ips_to_server(
server=server, ips=floating_ip_address, reuse=reuse,
fixed_address=fixed_address, wait=wait, timeout=timeout)
fip_address = cloud.get_server_public_ip(server)