Loading ccnode/host/__init__.py +6 −2 Original line number Diff line number Diff line Loading @@ -52,8 +52,12 @@ class Handler(BasePlugin): :param string command: shell command to run """ # return stdout and stderr mixed in try: return Popen(command, shell=True, bufsize=-1, stdin=PIPE, stdout=PIPE, stderr=STDOUT).communicate()[0] or None except Exception: logger.exception('Error while executing a remote command') raise def node_shutdown(self, reboot=True, gracefull=True): """Halt/Reboot the node. Loading Loading
ccnode/host/__init__.py +6 −2 Original line number Diff line number Diff line Loading @@ -52,8 +52,12 @@ class Handler(BasePlugin): :param string command: shell command to run """ # return stdout and stderr mixed in try: return Popen(command, shell=True, bufsize=-1, stdin=PIPE, stdout=PIPE, stderr=STDOUT).communicate()[0] or None except Exception: logger.exception('Error while executing a remote command') raise def node_shutdown(self, reboot=True, gracefull=True): """Halt/Reboot the node. Loading