Remove unused check_snapshots_enabled
Only used in Nova by the createImage action. Change-Id: I114281fd553020ac96c499c18ff3e4a2a626c3b2
This commit is contained in:
parent
3536ee616f
commit
c99bae92e8
@ -178,18 +178,6 @@ def dict_to_query_str(params):
|
||||
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."""
|
||||
|
||||
|
@ -440,11 +440,6 @@
|
||||
###### (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
|
||||
|
Loading…
x
Reference in New Issue
Block a user