diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-02-22 15:27:33 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-02-22 15:27:33 +0100 |
commit | 8c23653b156d86447572caef1a5dba8a5b3a45a5 (patch) | |
tree | ede43a6490fecb1d897d1ce7bce7ee61095c3c56 /usr-lib-nagios-plugins/check_dirvish.py | |
parent | ec5d6fc82d8c5c3a607f3937cefbf9aa1fba150b (diff) | |
download | itzks-systems-8c23653b156d86447572caef1a5dba8a5b3a45a5.tar.gz itzks-systems-8c23653b156d86447572caef1a5dba8a5b3a45a5.tar.bz2 itzks-systems-8c23653b156d86447572caef1a5dba8a5b3a45a5.zip |
usr-lib-nagios-plugins: White-space cleanups.
Diffstat (limited to 'usr-lib-nagios-plugins/check_dirvish.py')
-rwxr-xr-x | usr-lib-nagios-plugins/check_dirvish.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr-lib-nagios-plugins/check_dirvish.py b/usr-lib-nagios-plugins/check_dirvish.py index 5802bb2..aa6427c 100755 --- a/usr-lib-nagios-plugins/check_dirvish.py +++ b/usr-lib-nagios-plugins/check_dirvish.py @@ -196,7 +196,7 @@ class Backup(nagiosplugin.Resource): """ this takes the status line and validates it. check the gitolite code status is something of: (value i have seen in dirvish code) - (255) -- + (255) -- success warning (24) -- file vanished on sender """ @@ -210,8 +210,8 @@ class Backup(nagiosplugin.Resource): if statusD['status'] in ['success', 'warning']: return True return False - - + + def check_valid_dirvish_vault(self): _log.debug("Check if %r is a dirvish vault", self.vault) @@ -219,7 +219,7 @@ class Backup(nagiosplugin.Resource): try: self.check_path_accessible(dirvish_dir) self.check_file_accessible(os.path.join(dirvish_dir, 'default.conf')) - except (E_PathNotAccessible, E_FileNotAccessible): + except (E_PathNotAccessible, E_FileNotAccessible): raise E_VaultIsNotDirvishDirectory(dirvish_dir) def probe(self): |