Skip to content

Commit d429ec1

Browse files
committed
Drop SiteInformation.site_policy (OSG_SITE_INFO) (SOFTWARE-3471)
1 parent 652b551 commit d429ec1

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

config/40-siteinfo.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,3 @@ resource = UNAVAILABLE
2525
; and specify the percentages using this format: "osg:10, atlas:45, cms:45".
2626
;
2727
;sponsor =
28-
29-
; Set "site_policy" to a URL that lists your site's usage policy (if there
30-
; is such a URL).
31-
;site_policy = UNAVAILABLE

osg_configure/configure_modules/siteinformation.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ def __init__(self, *args, **kwargs):
3838
required=OPTIONAL,
3939
default_value='',
4040
mapping='OSG_SPONSOR'),
41-
'site_policy':
42-
configfile.Option(name='site_policy',
43-
required=OPTIONAL,
44-
default_value='',
45-
mapping='OSG_SITE_INFO'),
4641
'resource':
4742
configfile.Option(name='resource',
4843
required=MANDATORY,
@@ -78,6 +73,7 @@ def parse_configuration(self, configuration):
7873
"email",
7974
"latitude",
8075
"longitude",
76+
"site_policy",
8177
])
8278
self.log('SiteInformation.parse_configuration completed')
8379

tests/test_siteattributes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def testParsing1(self):
5454
'OSG_HOSTNAME': 'example.com',
5555
'OSG_SITE_NAME': 'MY_SITE',
5656
'OSG_SPONSOR': 'osg:100',
57-
'OSG_SITE_INFO': 'http://example/com/policy.html',
5857
}
5958
for var in variables:
6059
self.assertTrue(var in attributes,
@@ -84,7 +83,6 @@ def testParsing2(self):
8483
'OSG_HOSTNAME': 'example.com',
8584
'OSG_SITE_NAME': 'MY_SITE',
8685
'OSG_SPONSOR': 'osg:50 usatlas:50',
87-
'OSG_SITE_INFO': 'http://example/com/policy.html',
8886
}
8987
for var in variables:
9088
self.assertTrue(var in attributes,
@@ -114,7 +112,6 @@ def testParsing3(self):
114112
'OSG_HOSTNAME': 'example.com',
115113
'OSG_SITE_NAME': 'MY_SITE',
116114
'OSG_SPONSOR': 'osg:50 usatlas:50',
117-
'OSG_SITE_INFO': 'http://example/com/policy.html',
118115
}
119116
for var in variables:
120117
self.assertTrue(var in attributes,

0 commit comments

Comments
 (0)