maas boot-resources create typo error message is unhelpful

Bug #1945664 reported by Ian Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Triaged
Low
Unassigned

Bug Description

While trying to create a custom image in maas, I had <email address hidden> when it should have been content@=foo.tgz, but the only error message maas gives me when doing this is:
```
usage: maas [-h] COMMAND ...

optional arguments:
  -h, --help show this help message and exit

drill down:
  COMMAND
    login Log in to a remote API, and remember its description and credentials.
    logout Log out of a remote API, purging any stored credentials.
    list List remote APIs that have been logged-in to.
    refresh Refresh the API descriptions of all profiles.
    init Initialise MAAS in the specified run mode.
    config View or change controller configuration.
    status Status of controller services.
    migrate Perform migrations on connected database.
    apikey Used to manage a user's API keys. Shows existing keys unless --generate or --delete is passed.
    configauth Configure external authentication.
    createadmin Create a MAAS administrator account.
    changepassword
                  Change a MAAS user's password.
    admin Interact with http://localhost:5240/MAAS/api/2.0/

http://maas.io/

'str' object is not callable
```

Which made me very confused and didn't make clear that the issue is with the formatting of the content parameter and not with the commands I was providing. Something not being callable made me think I had typed the commands wrong or something like that

Tags: cli
Changed in maas:
status: New → Triaged
Changed in maas:
importance: Undecided → High
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

To be picked up together with cli improvements.

tags: added: cli
Changed in maas:
importance: High → Low
milestone: none → 3.5.0
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.