updated utils.check_cmd to accept the same parameters as other commands and be leveraged for node cmds
This commit is contained in:
parent
d326f246a7
commit
fc7a161221
6 changed files with 25 additions and 22 deletions
|
@ -98,7 +98,7 @@ class NodeBase(object):
|
|||
:raises CoreCommandError: when a non-zero exit status occurs
|
||||
"""
|
||||
if self.server is None:
|
||||
return utils.check_cmd(args, env=env, cwd=cwd)
|
||||
return utils.check_cmd(args, env, cwd, wait)
|
||||
else:
|
||||
args = " ".join(args)
|
||||
return distributed.remote_cmd(self.server, args, env, cwd, wait)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue