Rename wraper to wrapper

Change-Id: I279cdab9583112555b965c6c3108e6b199264a45
Closes-Bug: #1489835
changes/08/218208/1
Hua Wang 7 years ago
parent 8719df3b99
commit 6ed85f7f6b
  1. 4
      magnum/common/policy.py

@ -108,7 +108,7 @@ def enforce_wsgi(api_name, act=None):
def delete(self, bay_ident):
...
"""
def wraper(fn):
def wrapper(fn):
action = "%s:%s" % (api_name, (act or fn.__name__))
@functools.wraps(fn)
@ -116,4 +116,4 @@ def enforce_wsgi(api_name, act=None):
enforce(pecan.request.context, action, None)
return fn(self, *args, **kwargs)
return handle
return wraper
return wrapper

Loading…
Cancel
Save