Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix add-credential help documentation. #8161

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

ExternalReality
Copy link
Contributor

@ExternalReality ExternalReality commented Nov 30, 2017

Description of change

The juju add-credentail help documentation is incorrect.

QA steps

Feeding the help message's example credential file to an add-credential command that use it should work:

juju add-credential -h | grep -A12 'credentials:' > example_creds.yaml
juju add-credential azure -f example_creds.yaml

Then edit example_creds.yaml with valid azure credentials

Then you should be able to bootstrap a controller on azure. Notice how before this patch bootstrapping using this method would fail since tenant_id is not recognized by juju's credential validation and adding it to the file would result in the following error when bootstrapping:

ERROR finalizing "bug" credential for cloud "azure": unknown key "tenant-id" (value "d68eec40-62f8-446f-9da8-a9094b2cbdee")

Documentation changes

The online documentation is also incorrect. A PR is has been opened with the relevant fix.

Bug reference

https://bugs.launchpad.net/juju/+bug/1690920

@jujubot
Copy link
Collaborator

jujubot commented Nov 30, 2017

Can one of the admins verify this patch?

@ExternalReality
Copy link
Contributor Author

!!build!!

@jameinel
Copy link
Member

jameinel commented Dec 1, 2017

We should never require the user specify "/dev/stdin". If we want to do something like that, we should support using "-" to mean stdin.

@ExternalReality
Copy link
Contributor Author

Is this PR good for approval?

@jameinel
Copy link
Member

jameinel commented Dec 1, 2017 via email

@ExternalReality
Copy link
Contributor Author

OK, will defer @axw

Copy link
Contributor

@axw axw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@anastasiamac
Copy link
Contributor

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Dec 5, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit 79d3ef1 into juju:2.2 Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants