Quote commands when running ansible
diff --git a/planetstack/openstack_observer/ansible.py b/planetstack/openstack_observer/ansible.py
index 898b59a..41dc6f0 100644
--- a/planetstack/openstack_observer/ansible.py
+++ b/planetstack/openstack_observer/ansible.py
@@ -63,7 +63,8 @@
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()