Fix "Handler" typo in acl_handlers.py

It was only used to calculate the length of the string, so the typo
was not a bug.

Change-Id: Ibcc32ee231552b8918a67addc5331dcd73fbacf5
This commit is contained in:
karen chan 2016-12-07 08:36:49 -08:00 committed by Tim Burke
parent 0982119899
commit f086095feb
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def get_acl_handler(controller_name):
# pylint: disable-msg=E1101
for handler in base_klass.__subclasses__():
handler_suffix_len = len('AclHandler') \
if not handler.__name__ == 'S3AclHandler' else len('Hanlder')
if not handler.__name__ == 'S3AclHandler' else len('Handler')
if handler.__name__[:-handler_suffix_len] == controller_name:
return handler
return BaseAclHandler