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.
This commit is contained in:
parent
7433779164
commit
05e16c950d
1 changed files with 3 additions and 2 deletions
|
@ -155,8 +155,9 @@ def main():
|
||||||
|
|
||||||
if state == 'present':
|
if state == 'present':
|
||||||
server = cloud.add_ips_to_server(
|
server = cloud.add_ips_to_server(
|
||||||
server=server, ips=floating_ip_address, reuse=reuse,
|
server=server, ips=floating_ip_address, ip_pool=network,
|
||||||
fixed_address=fixed_address, wait=wait, timeout=timeout)
|
reuse=reuse, fixed_address=fixed_address, wait=wait,
|
||||||
|
timeout=timeout)
|
||||||
fip_address = cloud.get_server_public_ip(server)
|
fip_address = cloud.get_server_public_ip(server)
|
||||||
# Update the floating IP status
|
# Update the floating IP status
|
||||||
f_ip = _get_floating_ip(cloud, fip_address)
|
f_ip = _get_floating_ip(cloud, fip_address)
|
||||||
|
|
Loading…
Reference in a new issue