From 36e4cc3140ba61be6de64bc232855f64239ed381 Mon Sep 17 00:00:00 2001 From: "Dr. Peter Poeml" Date: Wed, 25 Apr 2007 08:56:31 +0000 Subject: [PATCH] initialize the auth handler with all configured credentials, so it is now possible to use osc with different api servers by overriding apisrv on the command line --- osc/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osc/conf.py b/osc/conf.py index c9c08391..0a3fd2e4 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -149,7 +149,8 @@ def init_basicauth(config): # with None as first argument, it will always use this username/password # combination for urls for which arg2 (apisrv) is a super-url - authhandler.add_password(None, config['apisrv'], config['user'], config['pass']) + for host, auth in config['auth_dict'].iteritems(): + authhandler.add_password(None, host, auth['user'], auth['pass']) def get_config():