From 37f1805ad3fbcf83e8828b2b73b983dc4e550e18 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Thu, 14 Nov 2013 21:25:35 -0800 Subject: [PATCH] Add errors count to the output. --- gkeyldap/actions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gkeyldap/actions.py b/gkeyldap/actions.py index be02dfd..13e67f7 100644 --- a/gkeyldap/actions.py +++ b/gkeyldap/actions.py @@ -124,6 +124,7 @@ class Actions(object): filename = self.config['dev-seedfile'] + '.new' self.seeds = Seeds(filename) count = 0 + error_count = 0 for dev in sorted(devs): if devs[dev]['gentooStatus'][0] not in ['active']: continue @@ -134,10 +135,14 @@ class Actions(object): new_gkey = GKEY._make(keyinfo) self.seeds.add(new_gkey) count += 1 + else: + error_count += 1 self.output("Total number of seeds created:", count) self.output("Seeds created...saving file: %s" % filename) + self.output("Total number of Dev's with gpg errors:", error_count) self.logger.info("Total number of seeds created: %d" % count) self.logger.info("Seeds created...saving file: %s" % filename) + self.logger.info("Total number of Dev's with gpg errors: %d" % error_count) return self.seeds.save() -- 2.26.2