|
|
@ -33,6 +33,7 @@ from ansible import errors
|
|
|
|
from ansible.utils import module_docs
|
|
|
|
from ansible.utils import module_docs
|
|
|
|
import ansible.constants as C
|
|
|
|
import ansible.constants as C
|
|
|
|
from ansible.utils import version
|
|
|
|
from ansible.utils import version
|
|
|
|
|
|
|
|
import traceback
|
|
|
|
|
|
|
|
|
|
|
|
MODULEDIR = C.DEFAULT_MODULE_PATH
|
|
|
|
MODULEDIR = C.DEFAULT_MODULE_PATH
|
|
|
|
|
|
|
|
|
|
|
@ -162,7 +163,8 @@ def main():
|
|
|
|
desc = desc + '...'
|
|
|
|
desc = desc + '...'
|
|
|
|
print "%-20s %-60.60s" % (module, desc)
|
|
|
|
print "%-20s %-60.60s" % (module, desc)
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
sys.stderr.write("ERROR: module %s missing documentation\n" % module)
|
|
|
|
traceback.print_exc()
|
|
|
|
|
|
|
|
sys.stderr.write("ERROR: module %s has a documentation error formatting or is missing documentation\n" % module)
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|
|
|
@ -184,10 +186,11 @@ def main():
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
doc = module_docs.get_docstring(filename)
|
|
|
|
doc = module_docs.get_docstring(filename)
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
sys.stderr.write("ERROR: module %s missing documentation\n" % module)
|
|
|
|
traceback.print_exc()
|
|
|
|
|
|
|
|
sys.stderr.write("ERROR: module %s has a documentation error formatting or is missing documentation\n" % module)
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
if not doc is None:
|
|
|
|
if doc is not None:
|
|
|
|
|
|
|
|
|
|
|
|
all_keys = []
|
|
|
|
all_keys = []
|
|
|
|
for (k,v) in doc['options'].iteritems():
|
|
|
|
for (k,v) in doc['options'].iteritems():
|
|
|
|