mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use new shared rax_to_dict and normalize the services key into something that makes sense
This commit is contained in:
parent
88acb48753
commit
28fcdec2db
1 changed files with 2 additions and 4 deletions
|
@ -65,10 +65,8 @@ def cloud_identity(module, state, identity):
|
|||
)
|
||||
changed = False
|
||||
|
||||
for key, value in vars(identity).iteritems():
|
||||
if (isinstance(value, NON_CALLABLES) and
|
||||
not key.startswith('_')):
|
||||
instance[key] = value
|
||||
instance.update(rax_to_dict(identity))
|
||||
instance['services'] = instance.get('services', {}).keys()
|
||||
|
||||
if state == 'present':
|
||||
if not identity.authenticated:
|
||||
|
|
Loading…
Reference in a new issue