PEP8 Fixes
This commit is contained in:
parent
97e817ecb7
commit
be74d9e773
@ -468,7 +468,7 @@ class Swauth(object):
|
||||
|
||||
{"account_id": "AUTH_018c3946-23f8-4efb-a8fb-b67aae8e4162",
|
||||
"services": {"storage": {"default": "local",
|
||||
"local": "http://127.0.0.1:8080/v1/AUTH_018c3946-23f8-4efb-a8fb-b67aae8e4162"}},
|
||||
"local": "http://127.0.0.1:8080/v1/AUTH_018c3946"}},
|
||||
"users": [{"name": "tester"}, {"name": "tester3"}]}
|
||||
|
||||
:param req: The webob.Request to process.
|
||||
@ -522,7 +522,7 @@ class Swauth(object):
|
||||
this::
|
||||
|
||||
"services": {"storage": {"default": "local",
|
||||
"local": "http://127.0.0.1:8080/v1/AUTH_018c3946-23f8-4efb-a8fb-b67aae8e4162"}}
|
||||
"local": "http://127.0.0.1:8080/v1/AUTH_018c3946"}}
|
||||
|
||||
Making use of this section is described in :func:`handle_get_token`.
|
||||
|
||||
|
@ -239,7 +239,7 @@ class BucketController(Controller):
|
||||
|
||||
if 'acl' in args:
|
||||
return get_acl(self.account_name)
|
||||
|
||||
|
||||
objects = loads(''.join(list(body_iter)))
|
||||
body = ('<?xml version="1.0" encoding="UTF-8"?>'
|
||||
'<ListBucketResult '
|
||||
|
@ -1325,8 +1325,8 @@ class AccountController(Controller):
|
||||
if value[0].lower().startswith('x-account-meta-'))
|
||||
if self.app.memcache:
|
||||
self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
|
||||
return self.make_requests(req, self.app.account_ring, account_partition,
|
||||
'PUT', req.path_info, [headers] * len(accounts))
|
||||
return self.make_requests(req, self.app.account_ring,
|
||||
account_partition, 'PUT', req.path_info, [headers] * len(accounts))
|
||||
|
||||
@public
|
||||
def POST(self, req):
|
||||
@ -1342,8 +1342,9 @@ class AccountController(Controller):
|
||||
if value[0].lower().startswith('x-account-meta-'))
|
||||
if self.app.memcache:
|
||||
self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
|
||||
return self.make_requests(req, self.app.account_ring, account_partition,
|
||||
'POST', req.path_info, [headers] * len(accounts))
|
||||
return self.make_requests(req, self.app.account_ring,
|
||||
account_partition, 'POST', req.path_info,
|
||||
[headers] * len(accounts))
|
||||
|
||||
@public
|
||||
def DELETE(self, req):
|
||||
@ -1356,8 +1357,9 @@ class AccountController(Controller):
|
||||
'X-CF-Trans-Id': self.trans_id}
|
||||
if self.app.memcache:
|
||||
self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
|
||||
return self.make_requests(req, self.app.account_ring, account_partition,
|
||||
'DELETE', req.path_info, [headers] * len(accounts))
|
||||
return self.make_requests(req, self.app.account_ring,
|
||||
account_partition, 'DELETE', req.path_info,
|
||||
[headers] * len(accounts))
|
||||
|
||||
|
||||
class BaseApplication(object):
|
||||
|
@ -440,8 +440,8 @@ class LogProcessorDaemon(Daemon):
|
||||
"""
|
||||
:returns: the keylist mapping.
|
||||
|
||||
The keylist mapping determines how the stats fields are aggregated in
|
||||
the final aggregation step.
|
||||
The keylist mapping determines how the stats fields are aggregated
|
||||
in the final aggregation step.
|
||||
"""
|
||||
|
||||
if self._keylist_mapping == None:
|
||||
|
@ -150,7 +150,8 @@ class LogUploader(Daemon):
|
||||
|
||||
def upload_all_logs(self):
|
||||
"""
|
||||
Match files under log_dir to source_filename_pattern and upload to swift
|
||||
Match files under log_dir to source_filename_pattern and upload to
|
||||
swift
|
||||
"""
|
||||
pattern = self.validate_filename_pattern()
|
||||
if not pattern:
|
||||
|
Loading…
x
Reference in New Issue
Block a user