Skip to content

Commit 6e05c14

Browse files
committed
Make resource_group mandatory again (but only on CEs) (SOFTWARE-4107)
1 parent 3d69867 commit 6e05c14

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

config/40-siteinfo.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@ host_name = UNAVAILABLE
1919
;
2020
; YOU WILL NEED TO CHANGE THIS
2121
resource = UNAVAILABLE
22+
23+
; Set "resource_group" to the name of the resource that you have registered
24+
; in the OSG topology repository at https://github.com/opensciencegrid/topology
25+
;
26+
; CEs WILL NEED TO CHANGE THIS
27+
resource_group = UNAVAILABLE
28+

osg_configure/configure_modules/infoservices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _write_ce_collector_attributes_file(self, attributes_file):
235235

236236
for name, value in [
237237
('OSG_Resource', self.osg_resource),
238-
('OSG_ResourceGroup', self.osg_resource_group or ""),
238+
('OSG_ResourceGroup', self.osg_resource_group),
239239
('OSG_BatchSystems', ",".join(self.enabled_batch_systems))
240240
]:
241241
attributes_file_lines.append("%s = %s" % (name, utilities.classad_quote(value)))

osg_configure/configure_modules/siteinformation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def __init__(self, *args, **kwargs):
3838
mapping='OSG_SITE_NAME'),
3939
'resource_group':
4040
configfile.Option(name='resource_group',
41-
default_value='',
42-
required=OPTIONAL)}
41+
required=MANDATORY_ON_CE)}
4342

4443
self.config_section = "Site Information"
4544
self.enabled = True

0 commit comments

Comments
 (0)