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:
parent
325a979876
commit
37ac954123
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue