Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Bug 1154678 - [EAP6] - Newly created datasource is not enabled even w…
Browse files Browse the repository at this point in the history
…hen you have set Enabled=true -- user should be at least warned

Fix error in connection properties management code: do not clutter the created datasource Address

(regression detected in Jenkins)

(cherry picked from commit deff314)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
  • Loading branch information
tsegismont authored and Libor Zoubek committed Oct 29, 2014
1 parent 07c3db0 commit 42a2d2f
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -104,8 +104,9 @@ public CreateResourceReport createResource(CreateResourceReport report) {
if (!connectionPropertiesAsMap.isEmpty()) {
CompositeOperation cop = new CompositeOperation();
for (Map.Entry<String, String> connectionProperty : connectionPropertiesAsMap.entrySet()) {
datasourceAddress.add(connPropAttributeNameOnServer, connectionProperty.getKey());
Operation op = new Operation("add", datasourceAddress);
Address propertyAddress = new Address(datasourceAddress);
propertyAddress.add(connPropAttributeNameOnServer, connectionProperty.getKey());
Operation op = new Operation("add", propertyAddress);
op.addAdditionalProperty("value", connectionProperty.getValue());
cop.addStep(op);
}
Expand Down

0 comments on commit 42a2d2f

Please sign in to comment.