mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
cloudstack: fix user_data gathering, must not be in for loop
This commit is contained in:
parent
1aa4d0c2dd
commit
24b0943eaa
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class CloudStackFacts(object):
|
|||
if not filter:
|
||||
for key,path in self.fact_paths.iteritems():
|
||||
result[key] = self._fetch(CS_METADATA_BASE_URL + "/" + path)
|
||||
result['cloudstack_user_data'] = self._get_user_data_json()
|
||||
result['cloudstack_user_data'] = self._get_user_data_json()
|
||||
else:
|
||||
if filter == 'cloudstack_user_data':
|
||||
result['cloudstack_user_data'] = self._get_user_data_json()
|
||||
|
|
Loading…
Reference in a new issue