Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wdpypere committed Jul 3, 2020
1 parent b538496 commit 373626d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/vsc/utils/script_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
from vsc.utils.generaloption import SimpleOption
from vsc.utils.lock import lock_or_bork, release_or_bork, LOCKFILE_DIR, LOCKFILE_FILENAME_TEMPLATE
from vsc.utils.nagios import (
SimpleNagios, NAGIOS_CACHE_DIR, NAGIOS_CACHE_FILENAME_TEMPLATE, NAGIOS_EXIT_OK,
exit_from_errorcode
SimpleNagios, NAGIOS_CACHE_DIR, NAGIOS_CACHE_FILENAME_TEMPLATE, exit_from_errorcode,
NAGIOS_EXIT_OK, NAGIOS_EXIT_WARNING, NAGIOS_EXIT_CRITICAL, NAGIOS_EXIT_UNKNOWN,
)
from vsc.utils.timestamp import (
convert_timestamp, write_timestamp, retrieve_timestamp_with_default
Expand Down Expand Up @@ -256,6 +256,7 @@ def __init__(self, name=None, default_options=None):
self.start_timestamp = None
self.current_time = None


def make_options(self, defaults=None):
"""
Take the default sync options, set the default timestamp file and merge
Expand Down Expand Up @@ -297,7 +298,7 @@ def warning(self, msg):
self.fulloptions.critical(msg)
sys.exit(NAGIOS_EXIT_WARNING[0])

def critical(self, msg, log=True):
def critical(self, msg):
"""
Convenience method that calls ExtendedSimpleOptions critical and exists with nagios critical exitcode
"""
Expand Down

0 comments on commit 373626d

Please sign in to comment.