Comment 0 for bug 2060178

Revision history for this message
Jacopo Rota (r00ta) wrote : Static routes read in the CLI is broken

Tested on maas 3.5

ubuntu@maas-edge:~$ maas admin static-routes
usage: maas admin static-routes [-h] COMMAND ...

Manage static routes.

options:
  -h, --help show this help message and exit

drill down:
  COMMAND
    create Create a static route
    read List static routes

too few arguments
ubuntu@maas-edge:~$ maas admin static-routes read
usage: maas [-h] COMMAND ...

options:
  -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.
    config-tls Configure MAAS Region TLS.
    config-vault Configure MAAS Region Vault integration.
    createadmin Create a MAAS administrator account.
    changepassword
                  Change a MAAS user's password.
    admin Interact with http://localhost:5240/MAAS/api/2.0/

https://maas.io/

'Namespace' object has no attribute 'data'