mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
fix double pop of access_ip (#11435)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user