Skip to content

Commit

Permalink
Merge branch 'pr/v4/unused' into wip/v3.99
Browse files Browse the repository at this point in the history
* pr/v4/unused:
  Revert "Drop the OSG_HOSTNAME environment variable but keep SiteInformation.host_name since we need it in other places (e.g. gratia)  (SOFTWARE-3471)"
  • Loading branch information
matyasselmeci committed Feb 24, 2021
2 parents 2620def + d0d19c4 commit b5451a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osg_configure/configure_modules/siteinformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def __init__(self, *args, **kwargs):
mapping='OSG_GROUP'),
'host_name':
configfile.Option(name='host_name',
required=MANDATORY_ON_CE),
required=MANDATORY_ON_CE,
mapping='OSG_HOSTNAME'),
'resource':
configfile.Option(name='resource',
required=MANDATORY,
Expand Down
1 change: 1 addition & 0 deletions scripts/osg-configure
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ CONFIG_DIRECTORY = '/etc/osg'
OUTPUT_DIRECTORY = '/var/lib/osg'
LOG_FILE = '/var/log/osg/osg-configure.log'
DEFAULT_JOB_ENVIRONMENT_ATTRIBUTES = ['OSG_SITE_NAME',
'OSG_HOSTNAME',
'OSG_GRID',
'OSG_APP',
'OSG_DATA',
Expand Down
3 changes: 3 additions & 0 deletions tests/test_siteattributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def testParsing1(self):

attributes = settings.get_attributes()
variables = {'OSG_GROUP': 'OSG-ITB',
'OSG_HOSTNAME': 'example.com',
'OSG_SITE_NAME': 'MY_SITE',
}
for var in variables:
Expand Down Expand Up @@ -78,6 +79,7 @@ def testParsing2(self):

attributes = settings.get_attributes()
variables = {'OSG_GROUP': 'OSG',
'OSG_HOSTNAME': 'example.com',
'OSG_SITE_NAME': 'MY_SITE',
}
for var in variables:
Expand Down Expand Up @@ -105,6 +107,7 @@ def testParsing3(self):

attributes = settings.get_attributes()
variables = {'OSG_GROUP': 'OSG',
'OSG_HOSTNAME': 'example.com',
'OSG_SITE_NAME': 'MY_SITE',
}
for var in variables:
Expand Down

0 comments on commit b5451a6

Please sign in to comment.