mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix this issue: https://github.com/saltstack/salt/issues/40073, describe return dictionary returned empty , probably as result of incorrect past merge (see discussion on issue)
This commit is contained in:
parent
9ef3e070c2
commit
954c871332
@ -551,7 +551,7 @@ def describe(name, tags=None, region=None, key=None, keyid=None,
|
||||
'CopyTagsToSnapshot', 'MonitoringInterval',
|
||||
'MonitoringRoleArn', 'PromotionTier',
|
||||
'DomainMemberships')
|
||||
return {'rds': dict([(k, rds.get('DBInstances', [{}])[0].get(k)) for k in keys])}
|
||||
return {'rds': dict([(k, rds.get(k)) for k in keys])}
|
||||
else:
|
||||
return {'rds': None}
|
||||
except ClientError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user