Skip to content

Commit 3d69867

Browse files
committed
Drop the OSG_HOSTNAME environment variable but keep SiteInformation.host_name since we need it in other places (e.g. gratia) (SOFTWARE-3471)
1 parent 9edbb14 commit 3d69867

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

osg_configure/configure_modules/siteinformation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def __init__(self, *args, **kwargs):
3131
mapping='OSG_GROUP'),
3232
'host_name':
3333
configfile.Option(name='host_name',
34-
required=MANDATORY_ON_CE,
35-
mapping='OSG_HOSTNAME'),
34+
required=MANDATORY_ON_CE),
3635
'resource':
3736
configfile.Option(name='resource',
3837
required=MANDATORY,

scripts/osg-configure

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ CONFIG_DIRECTORY = '/etc/osg'
2525
OUTPUT_DIRECTORY = '/var/lib/osg'
2626
LOG_FILE = '/var/log/osg/osg-configure.log'
2727
DEFAULT_JOB_ENVIRONMENT_ATTRIBUTES = ['OSG_SITE_NAME',
28-
'OSG_HOSTNAME',
2928
'OSG_GRID',
3029
'OSG_APP',
3130
'OSG_DATA',

tests/test_siteattributes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def testParsing1(self):
5151

5252
attributes = settings.get_attributes()
5353
variables = {'OSG_GROUP': 'OSG-ITB',
54-
'OSG_HOSTNAME': 'example.com',
5554
'OSG_SITE_NAME': 'MY_SITE',
5655
}
5756
for var in variables:
@@ -79,7 +78,6 @@ def testParsing2(self):
7978

8079
attributes = settings.get_attributes()
8180
variables = {'OSG_GROUP': 'OSG',
82-
'OSG_HOSTNAME': 'example.com',
8381
'OSG_SITE_NAME': 'MY_SITE',
8482
}
8583
for var in variables:
@@ -107,7 +105,6 @@ def testParsing3(self):
107105

108106
attributes = settings.get_attributes()
109107
variables = {'OSG_GROUP': 'OSG',
110-
'OSG_HOSTNAME': 'example.com',
111108
'OSG_SITE_NAME': 'MY_SITE',
112109
}
113110
for var in variables:

0 commit comments

Comments
 (0)