mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
parent
ce6595b567
commit
abae7a49f7
1 changed files with 3 additions and 1 deletions
|
@ -219,7 +219,9 @@ class AnsibleCloudStackConfiguration(AnsibleCloudStack):
|
|||
configurations = self.query_api('listConfigurations', **args)
|
||||
if not configurations:
|
||||
self.module.fail_json(msg="Configuration %s not found." % args['name'])
|
||||
configuration = configurations['configuration'][0]
|
||||
for config in configurations['configuration']:
|
||||
if args['name'] == config['name']:
|
||||
configuration = config
|
||||
return configuration
|
||||
|
||||
def get_value(self):
|
||||
|
|
Loading…
Reference in a new issue