From 6ed85f7f6b6c6a351564f418bad501c856101f06 Mon Sep 17 00:00:00 2001 From: Hua Wang Date: Fri, 21 Aug 2015 07:25:18 +0800 Subject: [PATCH] Rename wraper to wrapper Change-Id: I279cdab9583112555b965c6c3108e6b199264a45 Closes-Bug: #1489835 --- magnum/common/policy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magnum/common/policy.py b/magnum/common/policy.py index b5751107a3..302e587f5b 100644 --- a/magnum/common/policy.py +++ b/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