Fix NameError in testinfra module

This commit is contained in:
Erik Johnson 2018-07-17 12:38:17 -05:00
parent 6e32bb7f74
commit 5ace9f01ec
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -296,7 +296,7 @@ def _register_functions():
modules_ = [module_ for module_ in modules.modules]
for mod_name in modules_:
mod_name = _to_snake_case(module_)
mod_name = _to_snake_case(mod_name)
mod_func = _copy_function(mod_name, str(mod_name))
mod_func.__doc__ = _build_doc(mod_name)
__all__.append(mod_name)