Updated how we handle passwords and host information so that its transparent to config caller.

This commit is contained in:
Joshua Harlow
2012-01-22 11:37:45 -08:00
parent 48f361c2d1
commit cb69a36dcc
10 changed files with 53 additions and 56 deletions

View File

@@ -193,7 +193,7 @@ class ImageCreationService:
def __init__(self, cfg=None, flat_urls=None, token=None):
if cfg:
token = cfg.getpw("passwords", "service_token")
token = cfg.get("passwords", "service_token")
flat_urls = cfg.get('img', 'image_urls')
if flat_urls: