Skip to content
Snippets Groups Projects
Unverified Commit 5c5421e4 authored by R. P. Taylor's avatar R. P. Taylor Committed by GitHub
Browse files

fix double pop of access_ip (#11435)

parent 1798989f
No related branches found
No related tags found
No related merge requests found
......@@ -368,7 +368,7 @@ def iter_host_ips(hosts, ips):
'ansible_host': ip,
})
if 'use_access_ip' in host[1]['metadata'] and host[1]['metadata']['use_access_ip'] == "0":
if 'use_access_ip' in host[1]['metadata'] and host[1]['metadata']['use_access_ip'] == "0" and 'access_ip' in host[1]:
host[1].pop('access_ip')
yield host
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment