mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-11 08:34:21 -07:00
Adds the appropriate key checks for ElastiCache replication groups in get_dict_from_describe_dict method
This commit is contained in:
parent
069ee11699
commit
f25ad9dc51
1 changed files with 5 additions and 0 deletions
|
@ -1088,6 +1088,11 @@ class Ec2Inventory(object):
|
||||||
if key == 'ec2_endpoint' and value:
|
if key == 'ec2_endpoint' and value:
|
||||||
host_info['ec2_endpoint_address'] = value['Address']
|
host_info['ec2_endpoint_address'] = value['Address']
|
||||||
host_info['ec2_endpoint_port'] = value['Port']
|
host_info['ec2_endpoint_port'] = value['Port']
|
||||||
|
if key == 'ec2_node_groups' and value:
|
||||||
|
host_info['ec2_endpoint_address'] = value[0]['PrimaryEndpoint']['Address']
|
||||||
|
host_info['ec2_endpoint_port'] = value[0]['PrimaryEndpoint']['Port']
|
||||||
|
if key == 'ec2_member_clusters' and value:
|
||||||
|
host_info['ec2_member_clusters'] = ','.join([str(i) for i in value])
|
||||||
elif key == 'ec2_cache_parameter_group':
|
elif key == 'ec2_cache_parameter_group':
|
||||||
host_info['ec2_cache_parameter_group_name'] = value['CacheParameterGroupName']
|
host_info['ec2_cache_parameter_group_name'] = value['CacheParameterGroupName']
|
||||||
host_info['ec2_cache_parameter_apply_status'] = value['ParameterApplyStatus']
|
host_info['ec2_cache_parameter_apply_status'] = value['ParameterApplyStatus']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue