From a5351473e08ee18cbc86edfb52da708ad558fe85 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 20 Apr 2023 16:32:54 +0100 Subject: 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 --- kolla/image/build.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'kolla/image/build.py') diff --git a/kolla/image/build.py b/kolla/image/build.py index fdf1635c8..86f0d8a71 100644 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -11,7 +11,6 @@ # limitations under the License. import contextlib -import json import logging import queue import shutil @@ -195,8 +194,6 @@ def run_build(): raise if conf.summary: - results = kolla.summary() - if conf.format == 'json': - print(json.dumps(results)) + kolla.summary() kolla.cleanup() return kolla.get_image_statuses() -- cgit v1.2.3