Skip to content

Commit fc05544

Browse files
committed
Drop SiteInformation.contact (OSG_CONTACT_NAME) (SOFTWARE-3471)
1 parent 85fdd9b commit fc05544

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

config/40-siteinfo.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ resource = UNAVAILABLE
3030
; is such a URL).
3131
;site_policy = UNAVAILABLE
3232

33-
; Set "contact" to the name of the admin/technical contact for the cluster.
34-
;
35-
; YOU WILL NEED TO CHANGE THIS
36-
contact = UNAVAILABLE
37-
3833
; Set "city" to the city that the cluster is located in.
3934
;
4035
; YOU WILL NEED TO CHANGE THIS

osg_configure/configure_modules/siteinformation.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ def __init__(self, *args, **kwargs):
4343
required=OPTIONAL,
4444
default_value='',
4545
mapping='OSG_SITE_INFO'),
46-
'contact':
47-
configfile.Option(name='contact',
48-
required=MANDATORY_ON_CE,
49-
mapping='OSG_CONTACT_NAME'),
5046
'city':
5147
configfile.Option(name='city',
5248
required=MANDATORY_ON_CE,
@@ -94,6 +90,7 @@ def parse_configuration(self, configuration):
9490

9591
self.get_options(configuration,
9692
ignore_options=[
93+
"contact",
9794
"email",
9895
])
9996
self.log('SiteInformation.parse_configuration completed')

tests/test_siteattributes.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def testParsing1(self):
5555
'OSG_SITE_NAME': 'MY_SITE',
5656
'OSG_SPONSOR': 'osg:100',
5757
'OSG_SITE_INFO': 'http://example/com/policy.html',
58-
'OSG_CONTACT_NAME': 'Admin Name',
5958
'OSG_SITE_CITY': 'Chicago',
6059
'OSG_SITE_COUNTRY': 'US',
6160
'OSG_SITE_LONGITUDE': '84.23',
@@ -89,7 +88,6 @@ def testParsing2(self):
8988
'OSG_SITE_NAME': 'MY_SITE',
9089
'OSG_SPONSOR': 'osg:50 usatlas:50',
9190
'OSG_SITE_INFO': 'http://example/com/policy.html',
92-
'OSG_CONTACT_NAME': 'Admin Name',
9391
'OSG_SITE_CITY': 'Chicago',
9492
'OSG_SITE_COUNTRY': 'US',
9593
'OSG_SITE_LONGITUDE': '-84.23',
@@ -123,7 +121,6 @@ def testParsing3(self):
123121
'OSG_SITE_NAME': 'MY_SITE',
124122
'OSG_SPONSOR': 'osg:50 usatlas:50',
125123
'OSG_SITE_INFO': 'http://example/com/policy.html',
126-
'OSG_CONTACT_NAME': 'Admin Name',
127124
'OSG_SITE_CITY': 'Chicago',
128125
'OSG_SITE_COUNTRY': 'US',
129126
'OSG_SITE_LONGITUDE': '-84.23',
@@ -156,7 +153,6 @@ def testMissingAttribute(self):
156153
mandatory_on_all = ['group']
157154
# ^ TODO OSG 3.5: add "resource" to this list
158155
mandatory_on_ce = ['host_name',
159-
'contact',
160156
'city',
161157
'country',
162158
'longitude',

0 commit comments

Comments
 (0)