diff options
| author | Mark Goddard <mark@stackhpc.com> | 2023-04-20 16:32:54 +0100 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2023-04-27 12:19:31 +0000 |
| commit | a5351473e08ee18cbc86edfb52da708ad558fe85 (patch) | |
| tree | 7caa13885a8d0559dd7d47f32a8c56715c1b1143 /kolla/common | |
| parent | bc2d3e4ef4aed12a5329f697967bd325339a7bff (diff) | |
| download | kolla-a5351473e08ee18cbc86edfb52da708ad558fe85.tar.gz kolla-a5351473e08ee18cbc86edfb52da708ad558fe85.zip | |
Summary JSON file
Add support for writing the build summary to a JSON file. This is more
machine-friendly than the current approach of writing to standard output
at the end of the build.
The file is configured via [DEFAULT] summary_json_file.
Change-Id: I9868af5d00977750d0673fc48f8863a99f878dc8
Diffstat (limited to 'kolla/common')
| -rw-r--r-- | kolla/common/config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py index 2d8e17a2f..526bc706c 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -199,6 +199,10 @@ _CLI_OPTS = [ cfg.StrOpt('format', short='f', default='json', choices=['json', 'none'], help='Format to write the final results in.'), + cfg.StrOpt('summary-json-file', + help='Name of a file to write the build summary to when format ' + 'is json. If unset, the summary will be written to ' + 'standard output'), cfg.StrOpt('tarballs-base', default=TARBALLS_BASE, help='Base url to OpenStack tarballs'), cfg.IntOpt('threads', short='T', default=8, min=1, |
