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:
Blake Harnden 2022-06-10 14:23:06 -07:00
parent 60a48c7084
commit 9c69881aad
5 changed files with 121 additions and 8 deletions

View file

@ -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