Skip to content

Commit

Permalink
don't run refreshShadowQick when raw=true
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Sep 5, 2018
1 parent 1b86178 commit e08b67c
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -380,10 +380,14 @@ private PrismObject<ShadowType> processNoFetchGet(ProvisioningContext ctx,
XMLGregorianCalendar now, Task task, OperationResult parentResult)
throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException, EncryptionException {
LOGGER.trace("Processing noFetch get for {}", repositoryShadow);

// Even with noFetch we still want to delete expired pending operations. And even delete
// the shadow if needed.
repositoryShadow = refreshShadowQick(ctx, repositoryShadow, now, task, parentResult);

GetOperationOptions rootOptions = SelectorOptions.findRootOptions(options);
if (!GetOperationOptions.isRaw(rootOptions)) {
// Even with noFetch we still want to delete expired pending operations. And even delete
// the shadow if needed.
repositoryShadow = refreshShadowQick(ctx, repositoryShadow, now, task, parentResult);
}

if (repositoryShadow == null) {
ObjectNotFoundException e = new ObjectNotFoundException("Resource object not found");
parentResult.recordFatalError(e);
Expand Down

0 comments on commit e08b67c

Please sign in to comment.