mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
CLI: ansible-doc shows lists of modules & module docs on command-line
check path is directory added manpage & setup small cleanup shut up module_formatter in utils to avoid trace print on crud files in library
This commit is contained in:
committed by
Michael DeHaan
parent
b8d6dec5ad
commit
17f31a2a79
@@ -45,6 +45,7 @@ def get_docstring(filename, verbose=False):
|
||||
doc = yaml.load(child.value.s)
|
||||
|
||||
except:
|
||||
traceback.print_exc()
|
||||
print "unable to parse %s" % filename
|
||||
if verbose == True:
|
||||
traceback.print_exc()
|
||||
print "unable to parse %s" % filename
|
||||
return doc
|
||||
|
||||
Reference in New Issue
Block a user