-
Notifications
You must be signed in to change notification settings - Fork 356
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
Adding SSO to External Logging link #550
Conversation
res = http.request(Net::HTTP::Get.new(url.request_uri)) | ||
rescue Errno::ECONNREFUSED, SocketError => _e | ||
javascript_flash(:text => _("Cannot access '#{url.hostname}'. " \ | ||
"Make sure that the logging route is accessible"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You cannot use #{}
inside a gettext string. You need to change this to:
_("Cannot access '%{hostname}'. Make sure that the logging route is accessible") % {:hostname => url.hostname}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mzazrivec 👍 changed
5956121
to
d9e8870
Compare
2ebe7a8
to
4e3f750
Compare
4e3f750
to
56be18b
Compare
56be18b
to
74b1968
Compare
@mzazrivec I made the requested change, PTAL. |
74b1968
to
25082a8
Compare
Checked commit enoodle@25082a8 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@miq-bot add_label fine/yes |
Adding SSO to External Logging link (cherry picked from commit 815b8e4) https://bugzilla.redhat.com/show_bug.cgi?id=1443714
Fine backport details:
|
This will attempt to use the /auth/sso-setup and /auth/sso-login endpoints that are available to the openshift-auth-proxy. In case of a failure this will fall back to the non sso behavior.
[1]fabric8io/openshift-auth-proxy#11