Browse Source

Fix invalid variable in host inventory script (#5481)

pull/5450/head
Kessler 5 years ago
committed by Kubernetes Prow Robot
parent
commit
94956ebde9
1 changed files with 1 additions and 1 deletions
  1. 2
      contrib/terraform/terraform.py

2
contrib/terraform/terraform.py

@ -357,7 +357,7 @@ def iter_host_ips(hosts, ips):
'ansible_ssh_host': ip, 'ansible_ssh_host': ip,
}) })
if 'use_access_ip' in host[1]['metadata'] and ihost[1]['metadata']['use_access_ip'] == "0":
if 'use_access_ip' in host[1]['metadata'] and host[1]['metadata']['use_access_ip'] == "0":
host[1].pop('access_ip') host[1].pop('access_ip')
yield host yield host

Loading…
Cancel
Save