Commit 40ce0727 by Victor Schröder

Adds the logic to process the new config entries about ElastiCache replication groups

parent 22020ac3
...@@ -250,6 +250,12 @@ class Ec2Inventory(object): ...@@ -250,6 +250,12 @@ class Ec2Inventory(object):
else: else:
self.all_rds_instances = False self.all_rds_instances = False
# Return all ElastiCache replication groups? (if ElastiCache is enabled)
if config.has_option('ec2', 'all_elasticache_replication_groups') and self.elasticache_enabled:
self.all_elasticache_replication_groups = config.getboolean('ec2', 'all_elasticache_replication_groups')
else:
self.all_elasticache_replication_groups = False
# Return all ElastiCache clusters? (if ElastiCache is enabled) # Return all ElastiCache clusters? (if ElastiCache is enabled)
if config.has_option('ec2', 'all_elasticache_clusters') and self.elasticache_enabled: if config.has_option('ec2', 'all_elasticache_clusters') and self.elasticache_enabled:
self.all_elasticache_clusters = config.getboolean('ec2', 'all_elasticache_clusters') self.all_elasticache_clusters = config.getboolean('ec2', 'all_elasticache_clusters')
...@@ -295,6 +301,7 @@ class Ec2Inventory(object): ...@@ -295,6 +301,7 @@ class Ec2Inventory(object):
'group_by_elasticache_engine', 'group_by_elasticache_engine',
'group_by_elasticache_cluster', 'group_by_elasticache_cluster',
'group_by_elasticache_parameter_group', 'group_by_elasticache_parameter_group',
'group_by_elasticache_replication_group',
] ]
for option in group_by_options: for option in group_by_options:
if config.has_option('ec2', option): if config.has_option('ec2', option):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment