Skip to content
Snippets Groups Projects
Commit 1ccc10ba authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Merge pull request #597 from pcm32/patch-1

Adds missing 'ip' var for terraform-generated inventory, based on internal ip
parents f6233ffc f320b79c
No related branches found
No related tags found
No related merge requests found
......@@ -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'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment