MAAS CLI should preserve the URL the user enters
Bug #1544795 reported by
Mike Pontillo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Medium
|
Unassigned |
Bug Description
Upon entering the following commands, I noticed that the CLI was "smart" enough to store the path to the redirected /1.0/ URL, as shown below:
$ maas login admin http://
You are now logged in to the MAAS server at
http://
For help with the available commands, try:
maas admin --help
$ maas list
admin http://
For usability, I would rather the the MAAS CLI store what I typed and do redirects dynamically. That way, when I upgrade to MAAS 2.0, the transition will be seamless from the CLI perspective. (I'll be redirected to the 2.0 API.)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → next |
To post a comment you must log in.
FWIW, my plan with the new CLI was to figure out the upgrade automatically in either case. At one point the URL for the API had to be entered exactly, with the "/api/1.0/" at the end, but a convenience was added to the CLI to add it if it had been forgotten.