added check on root-vo scope

This commit is contained in:
Roberto Cirillo 2019-10-22 18:45:18 +02:00
parent 6d2fcb0286
commit 84d1fbe91c
1 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,11 @@ public class RegistryPublisherImpl implements RegistryPublisher {
RegistryStub stub = getRegistryStub();
createResource(resource, currentVO, stub);
vosScopes.remove(currentVO);
//in this case it is a root-vo scope so we need to create the resource only at root-vo level
}else{
RegistryStub stub = getRegistryStub();
createResource(resource, currentVO, stub);
return resource;
}
// update the resource for each VO
for (String voScope: vosScopes){