Merge ~troyanov/maas:backport-fix-2009186-to-3.3 into maas:3.3
Proposed by
Anton Troyanov
Status: | Merged |
---|---|
Approved by: | Anton Troyanov |
Approved revision: | 869c8ac444f22334abceb5a1644cf6032030c84c |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~troyanov/maas:backport-fix-2009186-to-3.3 |
Merge into: | maas:3.3 |
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 |
---|---|---|---|
Anton Troyanov | Approve | ||
Review via email: mp+438404@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.3