@@ -82,8 +82,6 @@ def __init__(self, *args, **kwargs):
82
82
self .gridEnv = ""
83
83
self .vo = ""
84
84
self .group = ""
85
- # self.voGroups contain all the eligible user groups for pilots submitted by this SiteDirector
86
- self .voGroups = []
87
85
self .pilotDN = ""
88
86
self .pilotGroup = ""
89
87
self .platforms = []
@@ -134,21 +132,6 @@ def initialize(self):
134
132
self .vo = CSGlobals .getVO ()
135
133
if not self .vo :
136
134
return S_ERROR ("Need a VO" )
137
- # The SiteDirector is for a particular user group
138
- self .group = self .am_getOption ("Group" , "" )
139
-
140
- # Choose the group for which pilots will be submitted. This is a hack until
141
- # we will be able to match pilots to VOs.
142
- if not self .group :
143
- result = Registry .getGroupsForVO (self .vo )
144
- if not result ["OK" ]:
145
- return result
146
- self .voGroups = []
147
- for group in result ["Value" ]:
148
- if "NormalUser" in Registry .getPropertiesForGroup (group ):
149
- self .voGroups .append (group )
150
- else :
151
- self .voGroups = [self .group ]
152
135
153
136
# Get the clients
154
137
self .siteClient = SiteStatus ()
@@ -227,8 +210,6 @@ def beginExecution(self):
227
210
tags = None
228
211
229
212
self .log .always ("VO:" , self .vo )
230
- if self .voGroups :
231
- self .log .always ("Group(s):" , self .voGroups )
232
213
self .log .always ("Sites:" , siteNames )
233
214
self .log .always ("CETypes:" , ceTypes )
234
215
self .log .always ("CEs:" , ces )
@@ -573,8 +554,6 @@ def _getTQDictForMatching(self):
573
554
"""
574
555
tqDict = {"Setup" : CSGlobals .getSetup (), "CPUTime" : 9999999 }
575
556
tqDict ["Community" ] = self .vo
576
- if self .voGroups :
577
- tqDict ["OwnerGroup" ] = self .voGroups
578
557
579
558
if self .checkPlatform :
580
559
platforms = self ._getPlatforms ()
@@ -669,8 +648,6 @@ def _getCE(self, queue):
669
648
if self .queueDict [queue ]["Site" ] not in self .siteMaskList :
670
649
ceDict ["JobType" ] = "Test"
671
650
ceDict ["Community" ] = self .vo
672
- if self .voGroups :
673
- ceDict ["OwnerGroup" ] = self .voGroups
674
651
675
652
if self .checkPlatform :
676
653
platform = self .queueDict [queue ]["ParametersDict" ].get ("Platform" )
0 commit comments