Skip to content

Commit

Permalink
Revert "Correcting code indentation to OpenSearch inventory"
Browse files Browse the repository at this point in the history
This reverts commit 11c7def.
  • Loading branch information
esc1144 committed Oct 19, 2023
1 parent 11c7def commit fa71312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data-collection/deploy/module-inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ Resources:
client = session.client(service, region_name=region)
try:
domain_names = [name.get('DomainName') for name in client.list_domain_names().get('DomainNames', [])]
for domain in domain_names:
domains = client.describe_domain(DomainName=domain)['DomainStatus']
yield {
domains = client.describe_domains(DomainNames=domain_names)['DomainStatusList']
for domain in domains:
yield {
'region': region,
'accountid': account_id,
'DomainName': domain['DomainName'],
Expand Down

0 comments on commit fa71312

Please sign in to comment.