cloudstack: fix user_data gathering, must not be in for loop

This commit is contained in:
Rene Moser 2015-06-29 11:58:56 +02:00
parent db33fcf89a
commit 90d0828b1a

View file

@ -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()