File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
src/DIRAC/Resources/Computing Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,10 @@ def _getDelegationIDs(self):
318
318
return S_OK (delegationIDs )
319
319
320
320
def _getProxyFromDelegationID (self , delegationID ):
321
- """Get proxy stored within the"""
321
+ """Get proxy stored within the delegation
322
+
323
+ :param str delegationID: delegation ID
324
+ """
322
325
query = self ._urlJoin (os .path .join ("delegations" , delegationID ))
323
326
params = {"action" : "get" }
324
327
@@ -595,10 +598,14 @@ def getCEStatus(self):
595
598
self .log .error ("Cannot get CE Status" , result ["Message" ])
596
599
return result
597
600
598
- # Try to find out which VO we are running for.
601
+ # Find out which VO we are running for.
599
602
# Essential now for REST interface.
600
- res = getVOfromProxyGroup ()
601
- vo = res ["Value" ] if res ["OK" ] else ""
603
+ result = getVOfromProxyGroup ()
604
+ if not result ["OK" ]:
605
+ return result
606
+ if not result ["Value" ]:
607
+ return S_ERROR ("Could not get VO value from the proxy group" )
608
+ vo = result ["Value" ]
602
609
603
610
# Prepare the command
604
611
params = {"schema" : "glue2" }
You can’t perform that action at this time.
0 commit comments