From 24d28de9790a1d896736b43331f6b3e770a34bd7 Mon Sep 17 00:00:00 2001 From: Kessler Date: Mon, 27 Jan 2020 10:59:02 +0100 Subject: [PATCH] Fix invalid variable in host inventory script (#5482) --- contrib/terraform/terraform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/terraform/terraform.py b/contrib/terraform/terraform.py index fbce5cb71..22c2a341d 100755 --- a/contrib/terraform/terraform.py +++ b/contrib/terraform/terraform.py @@ -357,7 +357,7 @@ def iter_host_ips(hosts, ips): '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') yield host