From d4c90e2968d4358c66723d2ef8137b15028dfc4a Mon Sep 17 00:00:00 2001 From: hamistao Date: Thu, 9 Jan 2025 10:19:48 -0300 Subject: [PATCH] WIP Signed-off-by: hamistao --- pylxd/models/instance.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pylxd/models/instance.py b/pylxd/models/instance.py index 6ace85ea..cb3b752b 100644 --- a/pylxd/models/instance.py +++ b/pylxd/models/instance.py @@ -497,10 +497,20 @@ def execute( # watch for the end of the command: while True: operation = self.client.operations.get(operation_id) + print(operation) if "return" in operation.metadata: + print("got operation result") + print(operation) break time.sleep(0.5) # pragma: no cover + time.sleep(1) + operation = self.client.operations.get(operation_id) + print(operation) + if "return" in operation.metadata: + print("got operation result again") + print(operation) + try: stdin.close() except BrokenPipeError: