`maas login` tells you you're logged in successfully when you're not

Bug #1319854 reported by Graham Binns
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Newell Jensen

Bug Description

Passing nonsense credentials to `maas login` gives you a "success" message:

graham@dorfl: maas$ maas login foobar http://maas-master.marybank.local/MAAS thisis:all:nonsense

You are now logged in to the MAAS server at http://maas-
master.marybank.local/MAAS/api/1.0/ with the profile name 'foobar'.

For help with the available commands, try:

  maas foobar --help

graham@dorfl: maas$ maas foobar node-groups list
Invalid consumer.

Tags: cli papercut

Related branches

tags: added: papercut
Changed in maas:
assignee: nobody → Newell Jensen (newell-jensen)
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: none → 1.7.0
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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