added check on root-vo scope in the update case

rest-collector
Roberto Cirillo 5 years ago
parent 84d1fbe91c
commit 5e45fd82d6

@ -237,7 +237,13 @@ public class RegistryPublisherImpl implements RegistryPublisher {
ScopeProvider.instance.set(currentVO);
registryUpdate(resource, 0);
vosScopes.remove(currentVO);
// in this case it is a root-vo scope so we need to update the resource only at root-vo level
}else{
RegistryStub stub = getRegistryStub();
createResource(resource, currentVO, stub);
return resource;
}
int tries=0;
for (String voScope: vosScopes){
log.debug("[VOUPDATE] check update operation on scope {} ",voScope);

Loading…
Cancel
Save