Skip to content

Commit

Permalink
Merge AcademySoftwareFoundation#911 DEFAULT_FACILITY
Browse files Browse the repository at this point in the history
  • Loading branch information
splhack committed Feb 9, 2021
1 parent 8a9e7ae commit a92b13a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion rqd/rqd/rqconstants.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
RQD_TAGS = config.get(__section, "RQD_TAGS")
if config.has_option(__section, "DEFAULT_FACILITY"):
DEFAULT_FACILITY = config.get(__section, "DEFAULT_FACILITY")
FACILITY = DEFAULT_FACILITY
if config.has_option(__section, "LAUNCH_FRAME_USER_GID"):
LAUNCH_FRAME_USER_GID = config.getint(__section, "LAUNCH_FRAME_USER_GID")
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion rqd/rqd/rqmachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def __initMachineStats(self, pathCpuInfo=None):
"""Updates static machine information during initialization"""
self.__renderHost.name = self.getHostname()
self.__renderHost.boot_time = self.getBootTime()
self.__renderHost.facility = rqd.rqconstants.FACILITY
self.__renderHost.facility = rqd.rqconstants.DEFAULT_FACILITY
self.__renderHost.attributes['SP_OS'] = rqd.rqconstants.SP_OS

self.updateMachineStats()
Expand Down
2 changes: 1 addition & 1 deletion rqd/tests/rqconstants_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def makeRqMachine(self):
""",
)
def test_facility(self):
self.assertEqual(rqd.rqconstants.FACILITY, "test_facility")
self.assertEqual(rqd.rqconstants.DEFAULT_FACILITY, "test_facility")

machine = self.makeRqMachine()
self.assertEqual(machine.renderHost.facility, "test_facility")
Expand Down

0 comments on commit a92b13a

Please sign in to comment.