make user triggered reimaging happen immediately (#566)

This commit is contained in:
bmc-msft
2021-02-18 14:08:25 -05:00
committed by GitHub
parent 21f08f6a98
commit 929d9ce496
2 changed files with 4 additions and 4 deletions

View File

@ -281,8 +281,8 @@ class Node(BASE_NODE, ORMMixin):
)
return None
def stop(self) -> None:
self.to_reimage()
def stop(self, done: bool = False) -> None:
self.to_reimage(done=done)
self.send_message(NodeCommand(stop=StopNodeCommand()))
def set_shutdown(self) -> None: