summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
authorLénaïc Huard <lhuard@amadeus.com>2016-11-16 15:37:13 +0100
committerLénaïc Huard <lhuard@amadeus.com>2016-11-16 15:37:13 +0100
commit82449c6b8a27ef56db70af2d8c0be89dc24465d2 (patch)
treeb1541b679249e1a09fdd9088070b8e6b0ff46ace /filter_plugins
parentb29e9340544cbfb127e0a7f6be88f8b4f2818b4d (diff)
downloadopenshift-82449c6b8a27ef56db70af2d8c0be89dc24465d2.tar.gz
openshift-82449c6b8a27ef56db70af2d8c0be89dc24465d2.tar.bz2
openshift-82449c6b8a27ef56db70af2d8c0be89dc24465d2.tar.xz
openshift-82449c6b8a27ef56db70af2d8c0be89dc24465d2.zip
Optimize the cloud-specific list.yml playbooks
by removing the need to gather facts on all VMs in order to list them. And prettify the output of AWS list the same way it is done for other cloud providers.
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index 93fdd5ae4..b0528c3e8 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -608,8 +608,8 @@ class FilterModule(object):
host_type=_get_tag_value(host['group_names'], 'host-type'),
sub_host_type=_get_tag_value(host['group_names'], 'sub-host-type'),
host={'name': host['inventory_hostname'],
- 'public IP': host['ansible_ssh_host'],
- 'private IP': host['ansible_default_ipv4']['address']})
+ 'public IP': host['oo_public_ipv4'],
+ 'private IP': host['oo_private_ipv4']})
except KeyError:
pass
return clusters