Cleaning up flake8 errors

Change-Id: If9b2f1ddfdf32d22f38fee25a8e7879a1f393cd9
This commit is contained in:
John Bresnahan 2013-08-01 11:43:04 -10:00
parent 57c5fd4a25
commit ee9d9d2b3b
4 changed files with 8 additions and 8 deletions

View File

@ -22,6 +22,7 @@ LOG = logging.getLogger(__name__)
def _make_request_id(user, tenant):
return str(uuid.uuid4())
class UnauthTestMiddleware(os_context.ContextMiddleware):
def __init__(self, app, options):
self.options = options
@ -56,8 +57,8 @@ class AuthContextMiddleware(os_context.ContextMiddleware):
request_id = _make_request_id(user, tenant)
context = self.make_context(is_admin=is_admin, user=user,
tenant=tenant, auth_token=auth_token,
request_id=request_id)
tenant=tenant, auth_token=auth_token,
request_id=request_id)
context.owner = user
return context

View File

@ -14,4 +14,3 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

View File

@ -89,10 +89,10 @@ def get_config_object(args=None, usage=None, default_config_files=None):
# to make keystone client middleware work (massive bummer)
cfg.CONF(args=args,
project='staccato',
version=version.cached_version_string(),
usage=usage,
default_config_files=default_config_files)
project='staccato',
version=version.cached_version_string(),
usage=usage,
default_config_files=default_config_files)
return conf

View File

@ -58,7 +58,7 @@ def find_protocol_module_name(lookup_dict, url_parts):
'The url %s is not supported' % url_parts.geturl())
def load_protocol_module(module_name, CONF):
def load_protocol_module(module_name, CONF):
try:
protocol_cls = importutils.import_class(module_name)
except ImportError, ie: