Skip to content

Commit

Permalink
app: allow using list for command
Browse files Browse the repository at this point in the history
This allows spaces in arguments

Change-Id: Icb71157eba43488028ea4f207e8009d0201c87c7
  • Loading branch information
pulsejet committed Sep 6, 2023
1 parent 92bc429 commit aed282d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion minindn/apps/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def __init__(self, node):
def start(self, command, logfile, envDict=None):
if self.process is None:
self.logfile = open('{}/{}'.format(self.logDir, logfile), 'w')
self.process = getPopen(self.node, command.split(), envDict,
if isinstance(command, str):
command = command.split()
self.process = getPopen(self.node, command, envDict,
stdout=self.logfile, stderr=self.logfile)

def stop(self):
Expand Down

0 comments on commit aed282d

Please sign in to comment.