From 05e16c950dc5976e8c47718112d718a313259d45 Mon Sep 17 00:00:00 2001 From: "Timothy R. Chavez" Date: Sun, 13 Dec 2015 09:25:34 -0800 Subject: [PATCH] Pass network argument to add_ips_to_server The `network` argument needs to be passed through `add_ips_to_server` so that the default value can be properly overridden from ansible. --- cloud/openstack/os_floating_ip.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud/openstack/os_floating_ip.py b/cloud/openstack/os_floating_ip.py index b6342f8fa01..5fb4f05d03e 100644 --- a/cloud/openstack/os_floating_ip.py +++ b/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)