diff --git a/lib/ansible/modules/cloud/openstack/os_floating_ip.py b/lib/ansible/modules/cloud/openstack/os_floating_ip.py index b6342f8fa0..5fb4f05d03 100644 --- a/lib/ansible/modules/cloud/openstack/os_floating_ip.py +++ b/lib/ansible/modules/cloud/openstack/os_floating_ip.py @@ -155,8 +155,9 @@ def main(): if state == 'present': server = cloud.add_ips_to_server( - server=server, ips=floating_ip_address, reuse=reuse, - fixed_address=fixed_address, wait=wait, timeout=timeout) + server=server, ips=floating_ip_address, ip_pool=network, + reuse=reuse, fixed_address=fixed_address, wait=wait, + timeout=timeout) fip_address = cloud.get_server_public_ip(server) # Update the floating IP status f_ip = _get_floating_ip(cloud, fip_address)