Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Jan 9, 2025
1 parent f036467 commit 64438ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pylxd/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 64438ea

Please sign in to comment.