From 8c23653b156d86447572caef1a5dba8a5b3a45a5 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 22 Feb 2017 15:27:33 +0100 Subject: usr-lib-nagios-plugins: White-space cleanups. --- usr-lib-nagios-plugins/check_dirvish.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr-lib-nagios-plugins/check_dirvish.py') 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): -- cgit v1.2.3