We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31636a8 + 767a9ab commit acfa559Copy full SHA for acfa559
src/spaceone/inventory/connector/aws_route53_connector/connector.py
@@ -97,10 +97,15 @@ def describe_record_sets(self, host_zone_id):
97
for data in response_iterator:
98
for raw in data.get('ResourceRecordSets', []):
99
display_values = []
100
- if raw.get('Type') == 'A':
+ rtype = raw.get('Type')
101
+
102
+ if rtype == 'A' or rtype == 'AAAA':
103
_alias = raw.get('AliasTarget', {})
104
if dns_name := _alias.get('DNSName'):
105
display_values.append(dns_name)
106
+ else:
107
+ for _r in raw.get('ResourceRecords', []):
108
+ display_values.append(_r.get('Value'))
109
else:
110
_records = raw.get('ResourceRecords', [])
111
for _r in _records:
0 commit comments