From f320b79c0c44019b9335a67d8cb3724123860c2d Mon Sep 17 00:00:00 2001 From: Pablo Moreno Date: Mon, 14 Nov 2016 02:04:13 +0000 Subject: [PATCH] Adds missing ip based on internal ip, for etcd --- contrib/terraform/terraform.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/terraform/terraform.py b/contrib/terraform/terraform.py index 10a35c22a..e8434c883 100755 --- a/contrib/terraform/terraform.py +++ b/contrib/terraform/terraform.py @@ -309,6 +309,7 @@ def openstack_host(resource, module_name): attrs = { 'access_ip_v4': raw_attrs['access_ip_v4'], 'access_ip_v6': raw_attrs['access_ip_v6'], + 'ip': raw_attrs['network.0.fixed_ip_v4'], 'flavor': parse_dict(raw_attrs, 'flavor', sep='_'), 'id': raw_attrs['id'],