1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Rename a confusing variable

I had to read the two lines in question twice. That might just make me
dumb, but if I'm dumb, someone else might be too.
This commit is contained in:
Monty Taylor 2016-08-01 08:33:09 -05:00 committed by Matt Clay
parent 4fad93561a
commit f441e2c1a9

View file

@ -164,8 +164,8 @@ def main():
if state == 'present':
# If f_ip already assigned to server, check that it matches
# requirements.
f_ip = cloud.get_server_public_ip(server)
f_ip = _get_floating_ip(cloud, f_ip) if f_ip else f_ip
public_ip = cloud.get_server_public_ip(server)
f_ip = _get_floating_ip(cloud, public_ip) if public_ip else public_ip
if f_ip:
if network:
network_id = cloud.get_network(name_or_id=network)["id"]