fixed pep8
This commit is contained in:
parent
5d8c002f23
commit
27b3074627
|
@ -38,7 +38,8 @@ class ShareActionsController(wsgi.Controller):
|
|||
access_type = body['os-allow_access']['access_type']
|
||||
access_to = body['os-allow_access']['access_to']
|
||||
|
||||
access = self.share_api.allow_access(context, share, access_type, access_to)
|
||||
access = self.share_api.allow_access(
|
||||
context, share, access_type, access_to)
|
||||
return {'access': access}
|
||||
|
||||
@wsgi.action('os-deny_access')
|
||||
|
|
|
@ -62,7 +62,8 @@ db_opts = [
|
|||
cfg.StrOpt('share_snapshot_name_template',
|
||||
default='share-snapshot-%s',
|
||||
help='Template string to be used to generate share snapshot '
|
||||
'names'),]
|
||||
'names'),
|
||||
]
|
||||
|
||||
FLAGS = flags.FLAGS
|
||||
FLAGS.register_opts(db_opts)
|
||||
|
|
|
@ -26,7 +26,8 @@ from manila.db import base
|
|||
from manila import exception
|
||||
from manila import flags
|
||||
from manila.image import glance
|
||||
from manila.openstack.common import log as logging, excutils
|
||||
from manila.openstack.common import excutils
|
||||
from manila.openstack.common import log as logging
|
||||
from manila.openstack.common import rpc
|
||||
from manila.openstack.common import timeutils
|
||||
import manila.policy
|
||||
|
@ -241,8 +242,8 @@ class API(base.Base):
|
|||
|
||||
if 'gigabytes' in overs:
|
||||
msg = _("Quota exceeded for %(s_pid)s, tried to create "
|
||||
"%(s_size)sG snapshot (%(d_consumed)dG of %(d_quota)dG "
|
||||
"already consumed)")
|
||||
"%(s_size)sG snapshot (%(d_consumed)dG of "
|
||||
"%(d_quota)dG already consumed)")
|
||||
LOG.warn(msg % {'s_pid': context.project_id,
|
||||
's_size': size,
|
||||
'd_consumed': _consumed('gigabytes'),
|
||||
|
|
|
@ -25,7 +25,6 @@ import uuid
|
|||
|
||||
from manila import flags
|
||||
from manila.openstack.common import log as logging
|
||||
from manila.openstack.common import importutils
|
||||
from manila import service
|
||||
from manila import test # For the flags
|
||||
from manila.tests.integrated.api import client
|
||||
|
|
Loading…
Reference in New Issue