mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Don't exit after individual file
This commit is contained in:
@@ -599,7 +599,6 @@ def main():
|
|||||||
|
|
||||||
exit = []
|
exit = []
|
||||||
|
|
||||||
# Allow testing against a single file
|
|
||||||
for module in args.modules:
|
for module in args.modules:
|
||||||
if os.path.isfile(module):
|
if os.path.isfile(module):
|
||||||
path = module
|
path = module
|
||||||
@@ -608,7 +607,6 @@ def main():
|
|||||||
mv = ModuleValidator(path)
|
mv = ModuleValidator(path)
|
||||||
mv.validate()
|
mv.validate()
|
||||||
exit.append(mv.report(args.warnings))
|
exit.append(mv.report(args.warnings))
|
||||||
sys.exit(sum(exit))
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(module):
|
for root, dirs, files in os.walk(module):
|
||||||
basedir = root[len(module)+1:].split('/', 1)[0]
|
basedir = root[len(module)+1:].split('/', 1)[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user