MAAS CLI should preserve the URL the user enters

Bug #1544795 reported by Mike Pontillo
6
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://172.16.100.10/MAAS/ xxx

You are now logged in to the MAAS server at
http://172.16.100.10/MAAS/api/1.0/ with the profile name 'admin'.

For help with the available commands, try:

  maas admin --help

$ maas list
admin http://172.16.100.10/MAAS/api/1.0/ xxx

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.)

Revision history for this message
Gavin Panella (allenap) wrote :

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.

Changed in maas:
status: New → Triaged
importance: Undecided → Medium
milestone: none → next
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi!

**This is an automated message**

We believe this is may no longer be an issue in the latest MAAS release. Due to the report date of this, we are currently marking it as Invalid. If you believe this bug report still valid against the latest release of MAAS, or if you are still interested in this, please re-open this bug report.

Thanks

Changed in maas:
status: Triaged → Invalid
milestone: next → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.