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 service_url when using ssl-no-validation #161

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

agrare
Copy link
Member

@agrare agrare commented May 31, 2022

When building the URL to use we were checking for non-ssl, ssl-with-validation, and ssl as the protocol. Rather than ssl the DDF form uses ssl-no-validation which was causing the scheme to be nil and making it impossible to add the provider (ref https://github.com/ManageIQ/manageiq-providers-redfish/blob/master/app/models/manageiq/providers/redfish/manager_mixin.rb#L55-L68)

Fixes ManageIQ/manageiq#21897

When building the URL to use we were checking for non-ssl,
ssl-with-validation, and ssl as the protocol.  Rather than ssl the DDF
form uses ssl-no-validation which was causing the scheme to be nil and
making it impossible to add the provider.
@agrare agrare requested a review from Fryguy as a code owner May 31, 2022 19:18
@agrare agrare added bug Something isn't working najdorf/yes? labels May 31, 2022
@miq-bot
Copy link
Member

miq-bot commented May 31, 2022

Checked commit agrare@ad1baec with ruby 2.6.9, rubocop 1.19.1, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@Fryguy Fryguy merged commit 57a71d9 into ManageIQ:master Jun 1, 2022
@agrare agrare deleted the fix_with_ssl_no_validation branch June 1, 2022 21:35
@Fryguy
Copy link
Member

Fryguy commented Jun 6, 2022

Backported to najdorf in commit a824c8a.

commit a824c8a3fe7ac0054d4645c709796f2f396f8166
Author: Jason Frey <[email protected]>
Date:   Wed Jun 1 17:23:39 2022 -0400

    Merge pull request #161 from agrare/fix_with_ssl_no_validation
    
    Fix service_url when using ssl-no-validation
    
    (cherry picked from commit 57a71d906249a101648594e03a2a235ad03274b6)

Fryguy added a commit that referenced this pull request Jun 6, 2022
Fix service_url when using ssl-no-validation

(cherry picked from commit 57a71d9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working najdorf/backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Physical Infrastructure Provider URI
3 participants