Skip to content

Commit

Permalink
Merge pull request #13840 from dkorn/fix_dw_default_port
Browse files Browse the repository at this point in the history
Allow adding datawarehouse provider with a port other than 80
  • Loading branch information
agrare authored Feb 13, 2017
2 parents 1ccf733 + 4b2bb69 commit e14009d
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 e14009d

Please sign in to comment.