diff options
Diffstat (limited to 'gkeys-ldap/gkeyldap/actions.py')
-rw-r--r-- | gkeys-ldap/gkeyldap/actions.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gkeys-ldap/gkeyldap/actions.py b/gkeys-ldap/gkeyldap/actions.py index ee06673..815950d 100644 --- a/gkeys-ldap/gkeyldap/actions.py +++ b/gkeys-ldap/gkeyldap/actions.py @@ -21,8 +21,8 @@ from gkeys.fileops import updatefiles Available_Actions = ['ldapsearch', 'updateseeds'] Action_Options = { - 'ldapsearch': ['fingerprint', 'mail', 'name', 'nick', 'seedfile', 'status'], - 'updateseeds': ['fingerprint', 'mail', 'name', 'nick', 'seedfile', 'status'], + 'ldapsearch': ['fingerprint', 'mail', 'name', 'nick', 'status'], + 'updateseeds': ['fingerprint', 'mail', 'name', 'nick', 'category', 'status'], } @@ -85,10 +85,8 @@ class Actions(object): info = l.result2dict(results, 'uid') self.logger.debug( "MAIN: _action_updateseeds; got results :) converted to info") - if args.seedfile: - filename = self.config.get('seeds', args.seedfile) + '.new' - elif args.file: - filename = arg.file + if args.category: + filename = self.config.get('seeds', args.category) + '.new' if not self.create_seedfile(info, filename): self.logger.error("Developer seed file update failure: " "Original seed file is intact & untouched.") |