summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaiwei Xu <xu-haiwei@mxw.nes.nec.co.jp>2015-03-26 17:28:19 +0900
committerHaiwei Xu <xu-haiwei@mxw.nes.nec.co.jp>2015-03-26 19:20:01 +0900
commitfaaf253b2fc5531dfe17a3f325a736ba0b2f4b47 (patch)
tree6f035a8fffa125eb341e4b548a7d8ab2205bad6a
parentfc775a18d62b88d6442b0361f5d9978d397de98b (diff)
downloadheat-templates-faaf253b2fc5531dfe17a3f325a736ba0b2f4b47.tar.gz
Fix AttributeError caused by hook-ansible
Currently a python miss in hook-ansible causes AttributeError, which will stop the ansible config being deployed. Change-Id: I33918424d664dfbe1d9471f0ac80b2a3c974f4d0 Closes-Bug: #1436740
-rwxr-xr-xhot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py b/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py
index dd92b56..972bd32 100755
--- a/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py
+++ b/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py
@@ -75,7 +75,7 @@ def main(argv=sys.argv):
]
log.debug('Running %s' % (' '.join(cmd),))
try:
- subproc = subprocess.Popen([cmd], stdout=subprocess.PIPE,
+ subproc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except OSError:
log.warn("ansible not installed yet")