Skip to content

Commit

Permalink
Stop using deprecated names of hawkular-client gem.
Browse files Browse the repository at this point in the history
Version 2.9.0 of hawkular-client has deprecated some names. This is
replacing the deprecated names with the current ones.
  • Loading branch information
israel-hdez committed Mar 28, 2017
1 parent 0fcdb72 commit 71a7d66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def self.raw_connect(options)
when :metrics
::Hawkular::Metrics::Client
when :alerts
::Hawkular::Alerts::AlertsClient
::Hawkular::Alerts::Client
else
raise ArgumentError, "Client not found for [#{type}]"
end
Expand Down
4 changes: 2 additions & 2 deletions app/models/manageiq/providers/hawkular/middleware_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Hawkular::MiddlewareManager < ManageIQ::Providers::MiddlewareManager
require_nested :Refresher

include AuthenticationMixin
include ::HawkularUtilsMixin
include ::Hawkular::ClientUtils

DEFAULT_PORT = 80
default_value_for :port, DEFAULT_PORT
Expand Down Expand Up @@ -279,7 +279,7 @@ def self.raw_alerts_connect(hostname, port, username, password)
:username => username,
:password => password
}
::Hawkular::Alerts::AlertsClient.new(url, credentials)
::Hawkular::Alerts::Client.new(url, credentials)
end

def add_middleware_datasource(ems_ref, hash)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ManageIQ::Providers
module Hawkular
class MiddlewareManager::RefreshParser
include ::HawkularUtilsMixin
include ::Hawkular::ClientUtils

def self.ems_inv_to_hashes(ems, options = nil)
new(ems, options).ems_inv_to_hashes
Expand Down

0 comments on commit 71a7d66

Please sign in to comment.