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

Bug 1526949 - Set registry user/pass if auth_type is not defined #635

Merged
merged 1 commit into from Jan 12, 2018

Conversation

dymurray
Copy link
Member

Describe what this PR does and why we need it:
Does not wipe out user/pass credentials just because the user didn't set auth_type. Later down the line we can explicity require auth_type if desired but it's not intuitive to set that value for long time users. This bit QE and the code was not in master for awhile so we weren't seeing this.

Changes proposed in this pull request

  • Accept registry user/pass if auth_type is not set

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 12, 2018
Copy link
Contributor

@shawn-hurley shawn-hurley 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 that this makes sense, but then what is the value of the config auth_type?

I figured that if auth_type was not defined then we would not attempt to use username or password.
(edit: typo)

@jmrodri jmrodri self-requested a review January 12, 2018 15:03
password = ""
// Assuming that the user has either no credentials or defined them in the config
username = reg.User
password = reg.Pass
Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, this looks good.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 49fe2d6 on dymurray:bz1526949 into ** on openshift:master**.

@dymurray dymurray merged commit c04c348 into openshift:master Jan 12, 2018
jianzhangbjz pushed a commit to jianzhangbjz/ansible-service-broker that referenced this pull request May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants