Skip to content

Commit

Permalink
Merge "Revert environment module usage in middleware."
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jun 27, 2013
2 parents 600c38b + 3bc661a commit 232630a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions keystone/middleware/ec2_token.py
Expand Up @@ -24,14 +24,14 @@

import urlparse

from eventlet.green import httplib
import webob.dec
import webob.exc

from nova import flags
from nova import utils
from nova import wsgi

from keystone.common import environment

FLAGS = flags.FLAGS
flags.DEFINE_string('keystone_ec2_url',
Expand Down Expand Up @@ -75,9 +75,9 @@ def __call__(self, req):
# pylint: disable-msg=E1101
o = urlparse.urlparse(FLAGS.keystone_ec2_url)
if o.scheme == 'http':
conn = environment.httplib.HTTPConnection(o.netloc)
conn = httplib.HTTPConnection(o.netloc)
else:
conn = environment.httplib.HTTPSConnection(o.netloc)
conn = httplib.HTTPSConnection(o.netloc)
conn.request('POST', o.path, body=creds_json, headers=headers)
response = conn.getresponse().read()
conn.close()
Expand Down
6 changes: 3 additions & 3 deletions keystone/middleware/s3_token.py
Expand Up @@ -33,11 +33,11 @@
"""

import httplib
import webob

from swift.common import utils as swift_utils

from keystone.common import environment
from keystone.openstack.common import jsonutils


Expand All @@ -62,9 +62,9 @@ def __init__(self, app, conf):
self.auth_port = int(conf.get('auth_port', 35357))
self.auth_protocol = conf.get('auth_protocol', 'https')
if self.auth_protocol == 'http':
self.http_client_class = environment.httplib.HTTPConnection
self.http_client_class = httplib.HTTPConnection
else:
self.http_client_class = environment.httplib.HTTPSConnection
self.http_client_class = httplib.HTTPSConnection
# SSL
self.cert_file = conf.get('certfile')
self.key_file = conf.get('keyfile')
Expand Down

0 comments on commit 232630a

Please sign in to comment.