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 non-finalizing update-credential command. #8247

Merged
merged 1 commit into from
Dec 27, 2017

Conversation

ExternalReality
Copy link
Contributor

@ExternalReality ExternalReality commented Dec 20, 2017

Description of change

The juju update-credential command does not process credentials in the same way as other commands. The difference leaves file paths in place in user's YAML credentials file when updating credentials for JSON file based cloud credentials.

QA steps

  1. Bootstrap a controller with credentials that are read from file.
  2. Do a dry run update juju upgrade-juju --dry-run - everything should work fine
  3. Update the credentials using juju update-credential
  4. Try a dry run upgrade again - It should fail
  5. After applying this commit, then step 4 should work.

Documentation changes

N/A

Bug reference

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

@jujubot
Copy link
Collaborator

jujubot commented Dec 20, 2017

Can one of the admins verify this patch?

@ExternalReality
Copy link
Contributor Author

Copy link
Member

@jameinel jameinel left a comment

Choose a reason for hiding this comment

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

I think we need to come back and think about the interface for ClientStore().CredentialForCloud() because that seems to be the obvious place to get credentials, but it doesn't give correct credentials.
One option is to just name it GetRawCredential, or something to make it more obvious that you need to do more than just this.

@ExternalReality
Copy link
Contributor Author

$$MERGE$$

@jujubot
Copy link
Collaborator

jujubot commented Dec 27, 2017

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

@jujubot
Copy link
Collaborator

jujubot commented Dec 27, 2017

Build failed: Tests failed
build url: http://ci.jujucharms.com/job/github-merge-juju/717

@ExternalReality
Copy link
Contributor Author

$$MERGE$$

@jujubot
Copy link
Collaborator

jujubot commented Dec 27, 2017

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

@jujubot jujubot merged commit af54c7b into juju:develop Dec 27, 2017
@ExternalReality ExternalReality deleted the develop branch December 27, 2017 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants