Commit 9113fea6 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

pithos: PEP8 fixes

parent 5648bc36
......@@ -553,7 +553,8 @@ class ModularBackend(BaseBackend):
external_quota = self.astakosclient.service_get_quotas(
account)[account]
for k, v in external_quota.items():
policy['%s-%s' % (QUOTA_POLICY, k)] = v['pithos.diskspace']['limit']
policy['%s-%s' % (QUOTA_POLICY, k)] = \
v['pithos.diskspace']['limit']
policy[QUOTA_POLICY] += v['pithos.diskspace']['limit']
return policy
......@@ -1255,7 +1256,7 @@ class ModularBackend(BaseBackend):
node=src_node)
try:
domains.remove(exclude_domain)
except ValueError: # domain is not in the list
except ValueError: # domain is not in the list
pass
for d in domains:
......
......@@ -34,7 +34,7 @@ class TestUUIDMixin(object):
t = self.account, self.account, container, obj
self.b.put_container(*t[:-1])
permissions = {'read': ['somebody_else']}
permissions = {'read': ['somebody']}
self.upload_object(*t, permissions=permissions)
self.b.update_object_meta(*t, domain='test1', meta={'domain': 'test1'})
meta = self.b.get_object_meta(*t, include_user_defined=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment