pep8 fixes
This commit is contained in:
@@ -73,6 +73,7 @@ LOG = logging.getLogger("nova.ldapdriver")
|
|||||||
# creating this now because I'm expecting an auth refactor
|
# creating this now because I'm expecting an auth refactor
|
||||||
# in which we may want to change the interface a bit more.
|
# in which we may want to change the interface a bit more.
|
||||||
|
|
||||||
|
|
||||||
def _clean(attr):
|
def _clean(attr):
|
||||||
"""Clean attr for insertion into ldap"""
|
"""Clean attr for insertion into ldap"""
|
||||||
if attr is None:
|
if attr is None:
|
||||||
@@ -81,6 +82,7 @@ def _clean(attr):
|
|||||||
return str(attr)
|
return str(attr)
|
||||||
return attr
|
return attr
|
||||||
|
|
||||||
|
|
||||||
def sanitize(fn):
|
def sanitize(fn):
|
||||||
"""Decorator to sanitize all args"""
|
"""Decorator to sanitize all args"""
|
||||||
def _wrapped(self, *args, **kwargs):
|
def _wrapped(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user