Skip to content

Commit c7595ad

Browse files
committed
use lowercase monitorclass everywhere
1 parent 70d2fa9 commit c7595ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/vsc/utils/script_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def __init__(self, options, run_prologue=True, excepthook=None, monitorclass=Sim
131131

132132
self.nagios_reporter = None
133133
self.lockfile = None
134-
self.MonitorClass = monitorclass
134+
self.monitorclass = monitorclass
135135

136136
if run_prologue:
137137
self.prologue()
@@ -148,13 +148,13 @@ def prologue(self):
148148
149149
See _merge_options for the format.
150150
151-
- if nagios_report is set, creates a MonitorClass instance and prints the report.
151+
- if nagios_report is set, creates a monitorclass instance and prints the report.
152152
- if ha is set, checks if running on the correct host, set the appropriate nagios message and bail if not.
153153
- if locking_filename is set, take a lock. If the lock fails, bork and set the nagios exit accordingly.
154154
"""
155155

156156
# bail if nagios report is requested
157-
self.nagios_reporter = self.MonitorClass(_cache=self.options.nagios_check_filename,
157+
self.nagios_reporter = self.monitorclass(_cache=self.options.nagios_check_filename,
158158
_report_and_exit=self.options.nagios_report,
159159
_threshold=self.options.nagios_check_interval_threshold,
160160
_cache_user=self.options.nagios_user,

0 commit comments

Comments
 (0)