def reboot(self): """ Reboot the node. :return Effect: """ def do_reboot(_): self._node.reboot() self._node, self.addresses = self._node.driver.wait_until_running([self._node], wait_period=15)[0] return return run_remotely(username="******", address=self.address, commands=run_from_args(["sync"])).on( success=do_reboot )
def reboot(self): """ Reboot the node. :return Effect: """ def do_reboot(_): self._node.reboot() self._node, self.addresses = (self._node.driver.wait_until_running( [self._node], wait_period=15)[0]) return return run_remotely(username="******", address=self.address, commands=run_from_args(["sync" ])).on(success=do_reboot)