From 98a5531966ec4693ddb3f72f50498b7bd611434e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Schr=C3=B6der?= Date: Sun, 14 Jun 2015 23:03:15 +0200 Subject: [PATCH] Makes the API requests to return nodes' information too --- plugins/inventory/ec2.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/inventory/ec2.py b/plugins/inventory/ec2.py index 0352a5e4f47..165e97099d9 100755 --- a/plugins/inventory/ec2.py +++ b/plugins/inventory/ec2.py @@ -420,8 +420,8 @@ class Ec2Inventory(object): self.fail_with_error(error) def get_elasticache_clusters_by_region(self, region): - ''' Makes an AWS API call to the list of ElastiCache clusters in a - particular region.''' + ''' Makes an AWS API call to the list of ElastiCache clusters (with + nodes' info) in a particular region.''' # ElastiCache boto module doesn't provide a get_all_intances method, # that's why we need to call describe directly (it would be called by @@ -429,7 +429,9 @@ class Ec2Inventory(object): try: conn = elasticache.connect_to_region(region) if conn: - response = conn.describe_cache_clusters() + # show_cache_node_info = True + # because we also want nodes' information + response = conn.describe_cache_clusters(None, None, None, True) except boto.exception.BotoServerError as e: error = e.reason