Wait for an image pull to actually finish before reporting success #8
Loading…
Reference in a new issue
No description provided.
Delete branch "phase-2-3-inventory-operations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pull_image reported success as soon as Incus accepted the pull request,
not when the transfer completed — POST /1.0/images answers immediately
and downloads in the background. That let a pull operation show
Succeeded while the image was still transferring, which the new
automatic post-pull inventory refresh would then immediately fail to
find, since it hadn't landed yet.
Uses wait_for_operation, which was already implemented and tested but
never called anywhere, to block until Incus's own operation actually
finishes or fails.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com