diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2020-07-20 14:05:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 14:05:01 -0700 |
commit | 1e3989c9f7919cbcfe82733711e13b93c026c2d8 (patch) | |
tree | ce0a9e42358069c94eef6e9b1cee66f2569b791b /hacking | |
parent | 59513ae673a52675ca8f8f47e85af21b905566fd (diff) | |
download | ansible-1e3989c9f7919cbcfe82733711e13b93c026c2d8.tar.gz |
Need to return any error code from running antsibull-docs (#70763)
This way we fail early if there's a problem
Diffstat (limited to 'hacking')
-rw-r--r-- | hacking/build_library/build_ansible/command_plugins/docs_build.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hacking/build_library/build_ansible/command_plugins/docs_build.py b/hacking/build_library/build_ansible/command_plugins/docs_build.py index 342ad4cdab..fc6bcba44d 100644 --- a/hacking/build_library/build_ansible/command_plugins/docs_build.py +++ b/hacking/build_library/build_ansible/command_plugins/docs_build.py @@ -52,9 +52,9 @@ def generate_base_docs(args): f.write(yaml.dump(deps_file_contents)) # Generate the plugin rst - antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file, - '--ansible-base-cache', str(args.top_dir), - '--dest-dir', args.output_dir]) + return antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file, + '--ansible-base-cache', str(args.top_dir), + '--dest-dir', args.output_dir]) # If we make this more than just a driver for antsibull: # Run other rst generation @@ -107,9 +107,9 @@ def generate_full_docs(args): f.write(yaml.dump(deps_data)) # Generate the plugin rst - antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file, - '--ansible-base-cache', str(args.top_dir), - '--dest-dir', args.output_dir]) + return antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file, + '--ansible-base-cache', str(args.top_dir), + '--dest-dir', args.output_dir]) # If we make this more than just a driver for antsibull: # Run other rst generation |