Skip to content

Conversation

@arthuraliiev
Copy link
Contributor

@arthuraliiev arthuraliiev commented Dec 24, 2025

Description

When we migrated cli to egoscale v3, we just replaced calls 1-1. This gives us multiple GetZoneAPIEndpoint calls (which trigger list-zones endpoint) in some cases:

after resource update we call Show which has it's own GetZoneAPIEndpoint;
in list resources we call GetZoneAPIEndpoint for each zone.

To avoid refactoring the large portion of CLI code, we can instead make GetZoneAPIEndpoint from egoscale call list-zones only once and cache result (list of zones is practically static).

Checklist

(For exoscale contributors)

  • Changelog updated (under Unreleased block)
  • For a new resource or new attributes: test added/updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants