git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quote commands when running ansible
[plstackapi.git]
/
planetstack
/
openstack_observer
/
ansible.py
diff --git
a/planetstack/openstack_observer/ansible.py
b/planetstack/openstack_observer/ansible.py
index
898b59a
..
41dc6f0
100644
(file)
--- a/
planetstack/openstack_observer/ansible.py
+++ b/
planetstack/openstack_observer/ansible.py
@@
-63,7
+63,8
@@
def run_template(name, opts,path='', expected_num=None):
f.write(buffer)
f.flush()
f.write(buffer)
f.flush()
- run = os.popen('/opt/planetstack/observer/run_ansible '+fqp)
+ run = os.popen('/opt/planetstack/observer/run_ansible %s'%shellquote(fqp))
+ #run = os.popen('ansible-playbook -v %s'%shellquote(fqp))
msg = run.read()
status = run.close()
msg = run.read()
status = run.close()