return param_str.rstrip('&')
-def check_snapshots_enabled(f):
- @functools.wraps(f)
- def inner(*args, **kwargs):
- if not FLAGS.allow_instance_snapshots:
- LOG.warn(_('Rejecting snapshot request, snapshots currently'
- ' disabled'))
- msg = _("Instance snapshots are not permitted at this time.")
- raise webob.exc.HTTPBadRequest(explanation=msg)
- return f(*args, **kwargs)
- return inner
-
-
class ViewBuilder(object):
"""Model API responses as dictionaries."""
###### (IntOpt) Number of minutes for lockout window.
# lockout_window=15
-######### defined in cinder.api.openstack.compute #########
-
-###### (BoolOpt) Permit instance snapshot operations.
-# allow_instance_snapshots=true
-
######### defined in cinder.ipv6.api #########
###### (StrOpt) Backend to use for IPv6 generation