add-credential/cloud should have option for parseable ERROR output
Bug #1851694 reported by
Joshua Genet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Just to preface (since I'm doing 2.7 release testing right now), this isn't a release-blocking bug.
I'll use add-credential for this example, but it also applies to add-cloud. It may also apply to other commands.
Our automation passes a credentials file into add-credential. Thus we have no knowledge of the credential name (ubuntu, steve, jim, etc). If add-credential causes an 'already exists' error, we use update-credential instead. Since we do not know the credential name, we have to parse it from the plain-English ERRROR output. It would be much better if we had a stable API (similar to --format=yaml) to parse this from.
Changed in juju: | |
status: | Incomplete → Triaged |
assignee: | nobody → Anastasia (anastasia-macmood) |
importance: | Undecided → Medium |
tags: | added: usability |
To post a comment you must log in.
Or, some other way to discover the credential name in a parseable manner