diff --git a/app/controllers/mixins/ems_common_angular.rb b/app/controllers/mixins/ems_common_angular.rb index 75d347a26f7..baacc10a003 100644 --- a/app/controllers/mixins/ems_common_angular.rb +++ b/app/controllers/mixins/ems_common_angular.rb @@ -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)