Skip to content

Commit

Permalink
check for empty modification when update operation is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Apr 7, 2015
1 parent 0f483b7 commit f846fc1
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -551,6 +551,11 @@ private Collection<PropertyModificationOperation> executeModify(ConnectorInstanc
}

if (!ResourceTypeUtil.hasUpdateCapability(resource)){
if (operations == null || operations.isEmpty()){
LOGGER.debug("No modifications for connector object specified (after filtering). Skipping processing.");
parentResult.recordSuccess();
return new HashSet<PropertyModificationOperation>();
}
throw new UnsupportedOperationException("Resource does not support 'update' operation");
}

Expand Down

0 comments on commit f846fc1

Please sign in to comment.