diff --git a/pylxd/models/instance.py b/pylxd/models/instance.py index 6ace85ea..46fac284 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.metadata) if "return" in operation.metadata: + print("got operation result") + print(operation.metadata) 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.metadata) + try: stdin.close() except BrokenPipeError: