revert action loader changes to doc, due to error

restoring behaviour in which a missing module is a warning that shows paths searched,
patch incorrectly bypassed detection and ended up in an exception: global name 'module' is not defined
pull/27302/head
Brian Coca 7 years ago
parent 4811c7f117
commit 4fba9bf23b

@ -124,8 +124,6 @@ class DocCLI(CLI):
try:
# if the plugin lives in a non-python file (eg, win_X.ps1), require the corresponding python file for docs
filename = loader.find_plugin(plugin, mod_type='.py', ignore_deprecated=True)
if filename is None and loader == module_loader:
filename = action_loader.find_plugin(module, mod_type='.py')
if filename is None:
display.warning("%s %s not found in %s\n" % (plugin_type, plugin, DocCLI.print_paths(loader)))
continue
@ -219,8 +217,6 @@ class DocCLI(CLI):
# if the module lives in a non-python file (eg, win_X.ps1), require the corresponding python file for docs
filename = loader.find_plugin(plugin, mod_type='.py', ignore_deprecated=True)
if filename is None and loader == module_loader:
filename = action_loader.find_plugin(module, mod_type='.py')
if filename is None:
continue
if filename.endswith(".ps1"):

Loading…
Cancel
Save