Merge ~troyanov/maas:backport-fix-2009186-to-3.2 into maas:3.2
Proposed by
Anton Troyanov
Status: | Merged |
---|---|
Approved by: | Anton Troyanov |
Approved revision: | 6e26a71968e094d08abac179be46a48ce13e3a2c |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~troyanov/maas:backport-fix-2009186-to-3.2 |
Merge into: | maas:3.2 |
Diff against target: |
60 lines (+29/-2) 2 files modified
src/maascli/api.py (+4/-1) src/maascli/tests/test_api.py (+25/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
MAAS Lander | Needs Fixing | ||
Anton Troyanov | Approve | ||
Review via email: mp+438403@code.launchpad.net |
Commit message
fix(cli): use profile.url to build absolute uri
When MAAS is behind a load-balancer or proxy
(e.g. HAProxy with `mode tcp`), CLI should use MAAS URL stored in profile
to build absolute URI of a resource, instead of relying on `uri` property
returned by `/describe`.
Resolves LP:2009186
(cherry picked from commit 28c72b81ed318b2
To post a comment you must log in.
Self approve backport to 3.2