Skip to content

Commit

Permalink
Merge pull request #265 from cben/get_hostname_from_routes-bug
Browse files Browse the repository at this point in the history
Use correct route to derive unfilled hawkular hostname
  • Loading branch information
Dan Clarizio authored Jan 31, 2017
2 parents 0c8f61c + 3878963 commit e72872c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/mixins/ems_common_angular.rb
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def set_ems_record_vars(ems, mode = nil)

def get_hostname_from_routes(ems, hostname, port, token)
client = ems.class.raw_connect(hostname, port, :bearer => token)
client.get_routes(:name=>'hawkular-metrics').first.try(:spec).try(:host)
client.get_route('hawkular-metrics', 'openshift-infra').try(:spec).try(:host)
end

def build_connection(ems, endpoints, mode)
Expand Down

0 comments on commit e72872c

Please sign in to comment.