Skip to content

Commit

Permalink
added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevel committed Jul 16, 2022
1 parent 292459c commit 30d37ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion check_omd.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"""

def raise_timeout(cmd, timeout):
print ("CRITICAL - executing command '{}' exceeded {} seconds timeout".format(" ".join(cmd), timeout))
"""
Raises a timeout and exits the program
"""
if OPTIONS.heal:
os.remove(lockfile)
LOGGER.debug("removing lockfile %s", lockfile)
Expand Down

0 comments on commit 30d37ca

Please sign in to comment.