Skip to content

Commit

Permalink
Allow to add datawarehouse provider with a port other than 80
Browse files Browse the repository at this point in the history
When adding a datawarehouse provider, port 80 is being used for
the "default" role endpoint, even if a different port was specified.
  • Loading branch information
dkorn committed Feb 9, 2017
1 parent 956679a commit 4b2bb69
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ class Hawkular::DatawarehouseManager < ManageIQ::Providers::DatawarehouseManager
include AuthenticationMixin

DEFAULT_PORT = 80
default_value_for :port, DEFAULT_PORT
default_value_for :port do |provider|
provider.port || DEFAULT_PORT
end

def verify_credentials(_auth_type = nil, options = {})
connect(options).fetch_version_and_status
Expand Down

0 comments on commit 4b2bb69

Please sign in to comment.