Annotate cron_file_helper.

This commit is contained in:
Tim Abbott 2016-07-29 16:09:08 -07:00
parent 4f782bc186
commit 0d39ed82d1
1 changed files with 4 additions and 0 deletions

View File

@ -1,7 +1,11 @@
#!/usr/bin/env python
import time
# Avoid requiring the typing module to be installed
if False: from typing import Tuple
def nagios_from_file(results_file):
# type: (str) -> Tuple[int, str]
"""Returns a nagios-appropriate string and return code obtained by
parsing the desired file on disk. The file on disk should be of format