diff --git a/lib/ansible/modules/cloud/openstack/os_floating_ip.py b/lib/ansible/modules/cloud/openstack/os_floating_ip.py index 957e3057375..b6342f8fa01 100644 --- a/lib/ansible/modules/cloud/openstack/os_floating_ip.py +++ b/lib/ansible/modules/cloud/openstack/os_floating_ip.py @@ -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)