From 2e5d5110624c47591cab80367553d887b0641899 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 8 Nov 2012 11:20:44 +0100 Subject: [PATCH] dsa-check-backuppg: also ignore *.old dirs --- dsa-nagios-checks/checks/dsa-check-backuppg | 2 +- dsa-nagios-checks/debian/changelog | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dsa-nagios-checks/checks/dsa-check-backuppg b/dsa-nagios-checks/checks/dsa-check-backuppg index b7b05c8..0ce4d95 100755 --- a/dsa-nagios-checks/checks/dsa-check-backuppg +++ b/dsa-nagios-checks/checks/dsa-check-backuppg @@ -138,7 +138,7 @@ config = load_conf(options.conffile) os.chdir(config['rootdir']) for dir in os.listdir('.'): - if dir.startswith('.'): + if dir.startswith('.') or dir.endswith('.old'): note_info('IGNORED', dir) continue diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 43de6f3..e7203da 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -15,7 +15,7 @@ dsa-nagios-checks (9X) Xnstable; urgency=low * dsa-check-packages: Ignore :$arch in package names of dpkg -l output, at least for the "primary" arch. Does not really handle multi-arch packages, but it makes things work again for now. - * dsa-check-backuppg: Ignore .dotfiles in rootdir. + * dsa-check-backuppg: Ignore .dotfiles and *.old in rootdir. [ Stephen Gran ] * dsa-check-udldap-freshness: check new last_update.trace if it -- 2.20.1