Need to return any error code from running antsibull-docs (#70763)

This way we fail early if there's a problem
pull/70776/head
Toshio Kuratomi 4 years ago committed by GitHub
parent 59513ae673
commit 1e3989c9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,7 @@ def generate_base_docs(args):
f.write(yaml.dump(deps_file_contents)) f.write(yaml.dump(deps_file_contents))
# Generate the plugin rst # Generate the plugin rst
antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file, return antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file,
'--ansible-base-cache', str(args.top_dir), '--ansible-base-cache', str(args.top_dir),
'--dest-dir', args.output_dir]) '--dest-dir', args.output_dir])
@ -107,7 +107,7 @@ def generate_full_docs(args):
f.write(yaml.dump(deps_data)) f.write(yaml.dump(deps_data))
# Generate the plugin rst # Generate the plugin rst
antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file, return antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file,
'--ansible-base-cache', str(args.top_dir), '--ansible-base-cache', str(args.top_dir),
'--dest-dir', args.output_dir]) '--dest-dir', args.output_dir])

Loading…
Cancel
Save