mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
parent
b5c2b407d6
commit
84ba41e0e1
2 changed files with 17 additions and 1 deletions
|
@ -80,7 +80,7 @@ class DocCLI(CLI):
|
|||
|
||||
# process all plugins of type
|
||||
if options.all_plugins:
|
||||
args = self.get_all_plugins_of_type(options['type'])
|
||||
args = self.get_all_plugins_of_type(options.type)
|
||||
if options.module_path:
|
||||
display.warning('Ignoring "--module-path/-M" option as "--all/-a" only displays builtins')
|
||||
|
||||
|
@ -283,6 +283,10 @@ class DocCLI(CLI):
|
|||
display.vvvv("%s does not exist" % path)
|
||||
return plugin_list
|
||||
|
||||
if not os.path.isdir(path):
|
||||
display.vvvv("%s is not a directory" % path)
|
||||
return plugin_list
|
||||
|
||||
bkey = ptype.upper()
|
||||
for plugin in os.listdir(path):
|
||||
display.vvvv("Found %s" % plugin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue