From fe6a6ccb65b0ef8b1df87d651357f478c99bf78c Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sat, 22 Jun 2013 09:07:16 -0700 Subject: [PATCH] filter results for 'active' devs only --- gkeyldap/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gkeyldap/cli.py b/gkeyldap/cli.py index f3c2ced..c702bd2 100644 --- a/gkeyldap/cli.py +++ b/gkeyldap/cli.py @@ -148,6 +148,8 @@ class Main(object): filename = self.config['dev-seedfile'] + '.new' self.seeds = Seeds(filename) for dev in devs: + if devs[dev]['gentooStatus'][0] not in ['active']: + continue logger.debug("create_seedfile, dev = %s, %s" % (str(dev), str(devs[dev]))) new_gkey = GKEY._make(self.build_gkeylist(devs[dev])) self.seeds.add(new_gkey) -- 2.26.2