Skip to content

Commit

Permalink
Fixes #28738: Reset bind host if :: is present
Browse files Browse the repository at this point in the history
This is necessary with smart proxy moving away from Ruby 2.0 via
RPM packaging changes to use SCLs.
  • Loading branch information
ehelms committed Jan 15, 2020
1 parent 785b3a9 commit 172f51e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if answers['foreman_proxy'].is_a?(Hash) &&
answers['foreman_proxy']['bind_host'].is_a?(Array) &&
answers['foreman_proxy']['bind_host'].include?('::') &&
facts[:os][:release][:major] == '7' &&
facts[:os][:family] == 'RedHat'
answers['foreman_proxy']['bind_host'].delete
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if answers['foreman_proxy'].is_a?(Hash) &&
answers['foreman_proxy']['bind_host'].is_a?(Array) &&
answers['foreman_proxy']['bind_host'].include?('::') &&
facts[:os][:release][:major] == '7' &&
facts[:os][:family] == 'RedHat'
answers['foreman_proxy']['bind_host'].delete
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if answers['foreman_proxy'].is_a?(Hash) &&
answers['foreman_proxy']['bind_host'].is_a?(Array) &&
answers['foreman_proxy']['bind_host'].include?('::') &&
facts[:os][:release][:major] == '7' &&
facts[:os][:family] == 'RedHat'
answers['foreman_proxy']['bind_host'].delete
end

0 comments on commit 172f51e

Please sign in to comment.