"juju show-cloud" doesn't support json output

Bug #1643981 reported by Francis Ginther
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned

Bug Description

Found this with 2.1-beta1-xenial-amd64.

The 'juju show-cloud' command only supports yaml format, unlike other commands which support json|tabular|yaml. I would at least expect any command that offers yaml output to also support json and vice versa.

ubuntu@landscape-xenial:~$ juju show-cloud scapestack --format=yaml
defined: local
type: maas
description: Metal As A Service
auth-types: [oauth1]
endpoint: http://10.96.0.10:80/MAAS
ubuntu@landscape-xenial:~$ juju show-cloud scapestack --format=tabular
error: invalid value "tabular" for flag --format: unknown format "tabular"
ubuntu@landscape-xenial:~$ juju show-cloud scapestack --format=json
error: invalid value "json" for flag --format: unknown format "json"
ubuntu@landscape-xenial:~$ juju show-cloud scapestack
defined: local
type: maas
description: Metal As A Service
auth-types: [oauth1]
endpoint: http://10.96.0.10:80/MAAS

This may impact other commands, I just happened to run into it with "show-cloud".

Revision history for this message
Anastasia (anastasia-macmood) wrote :

"show-" commands, generally, do not have a tabular output.
I agree about json/yaml though \o/

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
tags: added: usability
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.