Fix incorrect zone handing in instance snapshot list #787
+2
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is a fix for a bug when listing instance snapshots per zone, introduced in 9e128ed.
Checklist
(For exoscale contributors)
Testing
Before:
$ exo c i snapshot list warning: errors during listing, results might be incomplete. 1 error occurred: * unable to retrieve Compute instance "d373b9c7-8076-4330-b774-7e49115f6567": GetInstance: http response: Not Found: not found ┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼ │ ID │ CREATION DATE │ INSTANCE │ STATE │ ZONE │ ┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼ │ 405d7b9e-cee5-4eb6-96e4-d62ab4d43664 │ 2026-01-29 17:07:56 +0000 UTC │ myi │ exported │ ch-gva-2 │ ┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼ $ exo c i snapshot list -z at-vie-1 warning: errors during listing, results might be incomplete. 1 error occurred: * unable to retrieve Compute instance "d373b9c7-8076-4330-b774-7e49115f6567": GetInstance: http response: Not Found: not foundNow: