Skip to content

Commit

Permalink
Merge pull request #13937 from rubenvp8510/ds-parameters
Browse files Browse the repository at this point in the history
Send data source properties when adding data source operation is performed
  • Loading branch information
agrare authored Feb 17, 2017
2 parents ee3e7b9 + 3e63ea7 commit 6f61eb2
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/models/manageiq/providers/hawkular/middleware_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,18 @@ def self.raw_alerts_connect(hostname, port, username, password)
def add_middleware_datasource(ems_ref, hash)
with_provider_connection do |connection|
datasource_data = {
:resourcePath => ems_ref.to_s,
:datasourceName => hash[:datasource]["datasourceName"],
:xaDatasource => hash[:datasource]["xaDatasource"],
:jndiName => hash[:datasource]["jndiName"],
:driverName => hash[:datasource]["driverName"],
:driverClass => hash[:datasource]["driverClass"],
:connectionUrl => hash[:datasource]["connectionUrl"],
:userName => hash[:datasource]["userName"],
:password => hash[:datasource]["password"],
:securityDomain => hash[:datasource]["securityDomain"]
:resourcePath => ems_ref.to_s,
:datasourceName => hash[:datasource]["datasourceName"],
:xaDatasource => hash[:datasource]["xaDatasource"],
:jndiName => hash[:datasource]["jndiName"],
:driverName => hash[:datasource]["driverName"],
:driverClass => hash[:datasource]["driverClass"],
:connectionUrl => hash[:datasource]["connectionUrl"],
:userName => hash[:datasource]["userName"],
:password => hash[:datasource]["password"],
:xaDataSourceClass => hash[:datasource]["driverClass"],
:securityDomain => hash[:datasource]["securityDomain"],
:datasourceProperties => hash[:datasource]["datasourceProperties"]
}

connection.operations(true).add_datasource(datasource_data) do |on|
Expand Down

0 comments on commit 6f61eb2

Please sign in to comment.