Pass a dict configuration file to auth_keystone

This fixes bug #1091754

Change-Id: Iff76a2b499d69fc90c31a23e9c79b1b91f63653e
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2012-12-18 17:39:56 +01:00
parent 652bd9822d
commit 7471586dd6
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ if __name__ == '__main__':
# Build the WSGI app # Build the WSGI app
root = app.setup_app(pecan_config, root = app.setup_app(pecan_config,
extra_hooks=[acl.AdminAuthHook()]) extra_hooks=[acl.AdminAuthHook()])
root = acl.install(root, cfg.CONF) root = acl.install(root, dict(cfg.CONF))
# Create the WSGI server and start it # Create the WSGI server and start it
host, port = '0.0.0.0', int(cfg.CONF.metering_api_port) host, port = '0.0.0.0', int(cfg.CONF.metering_api_port)

View File

@ -55,7 +55,7 @@ def make_app(enable_acl=True, attach_storage=True):
# Install the middleware wrapper # Install the middleware wrapper
if enable_acl: if enable_acl:
return acl.install(app, cfg.CONF) return acl.install(app, dict(cfg.CONF))
return app return app
# For documentation # For documentation