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

Add provision to configure credentials via .zaza.yaml #641

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

dashmage
Copy link
Contributor

Adds feature similar to #574 to support selecting user provided credential from zaza.yaml.

Resolves #639

model_name,
config=config,
cloud_name=cloud_name,
credential_name=credential_name,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Normally, I'd suggest that this was:

credential_name=credential_name or None,

to force it to None if it is "not-truthy" to be really explicit about what is passed, but I've checked the python-libjuju and it only does a truthy check on credential_name anyway. Oh well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good suggestion! I was mostly following the layout of the other parameters 😄

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's a good suggestion! I was mostly following the layout of the other parameters 😄

And I think that's really reasonable as well! :-)

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1b002d2) 89.43% compared to head (6106c10) 89.43%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #641   +/-   ##
=======================================
  Coverage   89.43%   89.43%           
=======================================
  Files          44       44           
  Lines        4693     4695    +2     
=======================================
+ Hits         4197     4199    +2     
  Misses        496      496           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@Pjack Pjack left a comment

Choose a reason for hiding this comment

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

LGTM

@ajkavanagh ajkavanagh merged commit 089662b into openstack-charmers:master Jan 17, 2024
8 checks passed
@dashmage dashmage deleted the configure-cred branch January 17, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support credential selection
3 participants