From 24b0943eaa95da773f28800a13dc18ff41fbdac7 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Mon, 29 Jun 2015 11:58:56 +0200 Subject: [PATCH] cloudstack: fix user_data gathering, must not be in for loop --- lib/ansible/modules/extras/cloud/cloudstack/cs_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/cloudstack/cs_facts.py b/lib/ansible/modules/extras/cloud/cloudstack/cs_facts.py index f8749834120..e2bebf8b116 100644 --- a/lib/ansible/modules/extras/cloud/cloudstack/cs_facts.py +++ b/lib/ansible/modules/extras/cloud/cloudstack/cs_facts.py @@ -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()