File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ def as_attributes(self):
136
136
return attributes
137
137
138
138
139
-
140
139
class ResourceCatalog (object ):
141
140
"""Class for building an OSG_ResourceCatalog attribute in condor-ce configs for the ce-collector"""
142
141
@@ -148,7 +147,7 @@ def add_rcentry(self, rcentry):
148
147
149
148
return self
150
149
151
- def compose_text (self ):
150
+ def format_value (self ) -> str :
152
151
"""Return the OSG_ResourceCatalog classad attribute made of all the entries in this object"""
153
152
if not self .entries :
154
153
catalog = '{}'
@@ -164,5 +163,8 @@ def compose_text(self):
164
163
catalog = ('{ \\ \n '
165
164
+ ', \\ \n ' .join (entry_texts )
166
165
+ ' \\ \n }' )
166
+ return catalog
167
167
168
+ def compose_text (self ):
169
+ catalog = self .format_value ()
168
170
return 'OSG_ResourceCatalog = ' + catalog
Original file line number Diff line number Diff line change @@ -228,6 +228,9 @@ class ResourceCatalog: # forward declaration for type checking
228
228
def compose_text (self ) -> str :
229
229
pass
230
230
231
+ def format_value (self ) -> str :
232
+ pass
233
+
231
234
232
235
def resource_catalog_from_config (config : ConfigParser , default_allowed_vos : List [str ] = None ) -> ResourceCatalog :
233
236
"""
You can’t perform that action at this time.
0 commit comments