|
|
|
@ -447,7 +447,7 @@ public class RegistryPublisherImpl implements RegistryPublisher {
|
|
|
|
|
private <T extends Resource> HashSet<String> updateResourceScopes(T resource) {
|
|
|
|
|
HashSet<String> vosScopes = Utils.getInternalVOScopes(resource);
|
|
|
|
|
// if the resource type is a RunningInstance or a HostingNode the check on the most recent resource is bypassed
|
|
|
|
|
if((resource.type().toString().equalsIgnoreCase("RunningInstance")) || (resource.type().toString().equalsIgnoreCase("GHN")))
|
|
|
|
|
if((resource.type().toString().equalsIgnoreCase("RunningInstance")) || (resource.type().toString().equalsIgnoreCase("GHN")) || (resource.type().toString().equalsIgnoreCase("GCoreEndpoint")) || (resource.type().toString().equalsIgnoreCase("HostingNode")))
|
|
|
|
|
return vosScopes;
|
|
|
|
|
//extract the scopes from the more recent resource found at vo level
|
|
|
|
|
List <String> latestScopesFound= Utils.setLatestInternalScopes(resource, vosScopes);
|
|
|
|
|