[update-credential] Extraneous --credential option confuses

Bug #1800056 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Anastasia

Bug Description

Consider this invocation:

juju update-credential --credential <something> aws bob

The command help states "--credential is the credential to update" but the syntax shows:

juju update-credential [options] <cloud-name> <credential-name>

It appears that `--credential` and `<credential-name>` are redundant, which is confusing, especially since the syntax appears to require `<credential-name>`.

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

It is confusing indeed. However, due to a backward compatibility and current scripts that may potentially rely on current behavior, we cannot remove this redundant option unitl Juju 3.

I'll tag this bug as such and will add it to our board.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
tags: added: 3.0 usability
Revision history for this message
Peter Matulis (petermatulis) wrote :

I tried using the `--credential` option in 2.5-beta1, 2.4.4, and 2.3.9 and it's not supported:

$ juju update-credential --credential=pete aws
ERROR Usage: juju update-credential <cloud-name> <credential-name>

If it's included, along with the cloud name and credential name it is just ignored:

$ juju update-credential --credential=pete aws pete
Updated credential "pete" for user "admin" on cloud "aws".

That was on 2.3.9 and 2.4.4. The output is different on 2.5-beta1.

Changed in juju:
status: Triaged → In Progress
assignee: nobody → Anastasia (anastasia-macmood)
Revision history for this message
Anastasia (anastasia-macmood) wrote :

This PR against develop removes redundant, non-operational option https://github.com/juju/juju/pull/9943

Changed in juju:
status: In Progress → Fix Committed
milestone: none → 2.6-beta1
Changed in juju:
status: Fix Committed → Fix Released
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.