Skip to content

Commit

Permalink
Fixed provisioning tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Feb 17, 2017
1 parent 239d406 commit 8fbd2bd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Expand Up @@ -190,7 +190,7 @@ private ConnectorInstance createConfiguredConnectorInstance(PrismObject<Resource
// If it happens often, it may be an
// indication of a problem. Therefore it is good for admin to see it.
LOGGER.info("Created new connector instance for {}: {} v{}",
new Object[]{resourceType, connectorType.getConnectorType(), connectorType.getConnectorVersion()});
resourceType, connectorType.getConnectorType(), connectorType.getConnectorVersion());

return connector;
}
Expand Down
Expand Up @@ -258,7 +258,17 @@ public void configure(PrismContainerValue<?> configuration, OperationResult pare

// Make sure that the proper configuration schema is applied. This
// will cause that all the "raw" elements are parsed
configuration.applyDefinition(getConfigurationContainerDefinition());
boolean immutable = configuration.isImmutable();
try {
if (immutable) {
configuration.setImmutable(false);
}
configuration.applyDefinition(getConfigurationContainerDefinition());
} finally {
if (immutable) {
configuration.setImmutable(true);
}
}

IcfConfigurationTransformer configTransformer = new IcfConfigurationTransformer(connectorType, cinfo, protector);
// Transform XML configuration from the resource to the ICF connector configuration
Expand Down

0 comments on commit 8fbd2bd

Please sign in to comment.