Skip to content

Commit

Permalink
Merge pull request #12732 from carbonin/set_hostname_to_nil_if_localhost
Browse files Browse the repository at this point in the history
Unset the server hostname when it matches `/.*localhost.*/`
(cherry picked from commit 3e624b0)

https://bugzilla.redhat.com/show_bug.cgi?id=1396523
  • Loading branch information
gtanzillo authored and chessbyte committed Nov 20, 2016
1 parent 905a9e7 commit e119d74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/miq_server.rb
Expand Up @@ -194,6 +194,7 @@ def self.start
end

unless hostname.blank?
hostname = nil if hostname =~ /.*localhost.*/
server_hash[:hostname] = config_hash[:hostname] = hostname
end

Expand Down

0 comments on commit e119d74

Please sign in to comment.