daemon: updates to expose node.create_cmd and not be private, added utility functions for running multiple commands on multiple nodes more efficiently
This commit is contained in:
parent
60a48c7084
commit
9c69881aad
5 changed files with 121 additions and 8 deletions
|
@ -249,7 +249,7 @@ class PhysicalNode(CoreNode):
|
|||
iface.shutdown()
|
||||
self.rmnodedir()
|
||||
|
||||
def _create_cmd(self, args: str, shell: bool = False) -> str:
|
||||
def create_cmd(self, args: str, shell: bool = False) -> str:
|
||||
if shell:
|
||||
args = f'{BASH} -c "{args}"'
|
||||
return args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue