]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat api: fix ec2token authentication
authorSteven Hardy <shardy@redhat.com>
Tue, 30 Apr 2013 09:38:04 +0000 (10:38 +0100)
committerSteven Hardy <shardy@redhat.com>
Tue, 30 Apr 2013 09:38:04 +0000 (10:38 +0100)
Since the change merged from https://review.openstack.org/#/c/27383/
ec2token auth no longer works, because there is a mismatch between
the config file section name and the section specified in ec2token

fixes bug #1174673

Change-Id: I5c0465de5c023f587b677b10717ca3a08ba411b7

heat/api/aws/ec2token.py

index 173ea788b4e2255598910a0394affa8f8bd8e7cb..1382fd1bf4de17b5362f46041008f4c9fb14683c 100644 (file)
@@ -35,7 +35,7 @@ opts = [
     cfg.StrOpt('auth_uri', default=None),
     cfg.StrOpt('keystone_ec2_uri', default=None)
 ]
-cfg.CONF.register_opts(opts, group='ec2token')
+cfg.CONF.register_opts(opts, group='ec2authtoken')
 
 
 class EC2Token(wsgi.Middleware):
@@ -50,7 +50,7 @@ class EC2Token(wsgi.Middleware):
         if name in self.conf:
             return self.conf[name]
         else:
-            return cfg.CONF.ec2token[name]
+            return cfg.CONF.ec2authtoken[name]
 
     @webob.dec.wsgify(RequestClass=wsgi.Request)
     def __call__(self, req):