Skip to content

Commit

Permalink
Fix a minor issue in command splittling logic of cmd atom
Browse files Browse the repository at this point in the history
Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>
  • Loading branch information
anmolbabu committed Dec 5, 2016
1 parent 8107e69 commit 5953bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tendrl/node_agent/objects/node/atoms/cmd.py
@@ -1,12 +1,13 @@
import logging
import subprocess
import shlex

LOG = logging.getLogger(__name__)


class Cmd(object):
def run(self, parameters):
cmd = parameters.get("Node.cmd_str")
cmd = ["nohup"] + cmd.split(" ")
cmd = ["nohup"] + shlex.split(cmd)
subprocess.Popen(cmd)
return True

0 comments on commit 5953bd2

Please sign in to comment.