[odl-l3] Get OVS plugin into the action
[fuel.git] / deploy / common.py
index 9654b37..80832e2 100644 (file)
@@ -18,6 +18,7 @@ import shutil
 import stat
 import errno
 import time
+import shlex
 
 N = {'id': 0, 'status': 1, 'name': 2, 'cluster': 3, 'ip': 4, 'mac': 5,
      'roles': 6, 'pending_roles': 7, 'online': 8, 'group_id': 9}
@@ -37,11 +38,11 @@ if os.path.isfile(LOGFILE):
 out_handler = logging.FileHandler(LOGFILE, mode='w')
 out_handler.setFormatter(formatter)
 LOG.addHandler(out_handler)
-os.chmod(LOGFILE, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
+os.chmod(LOGFILE, 0664)
 
 
 def mask_arguments(cmd, mask_args, mask_str):
-    cmd_line = cmd.split()
+    cmd_line = shlex.split(cmd)
     for pos in mask_args:
         # Don't mask the actual command; also check if we don't reference
         # beyond bounds