Skip to content

Commit

Permalink
Fix config usage for mailman2
Browse files Browse the repository at this point in the history
  • Loading branch information
etrott committed Aug 24, 2015
1 parent ad225fc commit 366cf10
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bin/members
Expand Up @@ -134,9 +134,6 @@ if __name__ == "__main__":

src = args['src'] # what data source are we targetting?

# load the data source specific config options
src_config = config[src]

# FIXME: for p in plugins: p.extract()
# add 'activated plugins' to config;
if src == 'mailman2':
Expand All @@ -145,9 +142,7 @@ if __name__ == "__main__":
list_name = args.get('list_name')
base_url = args.get('base_url')

# this is defined in CONFIG only; not argparser
_config = config.get('mailman2')
lists = _config.get('lists') or {}
lists = args.get('lists') or {}
list_config = lists.get(list_name) or {}
user = list_config.get('user')
password = list_config.get('password')
Expand Down

0 comments on commit 366cf10

Please sign in to comment.