]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat api : bugfix, save config correctly in EC2Token
authorSteven Hardy <shardy@redhat.com>
Tue, 14 Aug 2012 14:56:13 +0000 (15:56 +0100)
committerSteven Hardy <shardy@redhat.com>
Tue, 14 Aug 2012 14:56:13 +0000 (15:56 +0100)
Fix issue where EC2Token fails to save the config correctly,
which breaks AWS Authentication

Fixes #191

Change-Id: I77dfe182aac81c55b7d487d88073b40eac1faadd
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/api/v1/ec2token.py

index cd47db8c136fa1eeff15a2019862c3e940264036..58b8869bd5b2ee97520521c2dbf1c2223b6426fa 100644 (file)
@@ -38,8 +38,8 @@ logger = logging.getLogger(__name__)
 class EC2Token(wsgi.Middleware):
     """Authenticate an EC2 request with keystone and convert to token."""
 
-    def __init__(self, app, conf, **local_conf):
-        self.conf = local_conf
+    def __init__(self, app, conf):
+        self.conf = conf
         self.application = app
 
     @webob.dec.wsgify(RequestClass=wsgi.Request)