mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 15:34:01 -07:00
galaxy updates
better error reporting on fetching errors use scm if it exists over src unified functions in requirements simplified logic added verbose to tests cleanup code refs, unused options and dead code moved get_opt to base class fixes #11920 fixes #12612 fixes #10454
This commit is contained in:
parent
a3ed9fc131
commit
f73329401b
7 changed files with 288 additions and 316 deletions
|
@ -63,6 +63,7 @@ def get_docstring(filename, verbose=False):
|
|||
theid = t.id
|
||||
except AttributeError as e:
|
||||
# skip errors can happen when trying to use the normal code
|
||||
display.warning("Failed to assign id for %t on %s, skipping" % (t, filename))
|
||||
continue
|
||||
|
||||
if 'DOCUMENTATION' in theid:
|
||||
|
@ -119,6 +120,7 @@ def get_docstring(filename, verbose=False):
|
|||
except:
|
||||
display.error("unable to parse %s" % filename)
|
||||
if verbose == True:
|
||||
display.display("unable to parse %s" % filename)
|
||||
raise
|
||||
return doc, plainexamples, returndocs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue