aboutsummaryrefslogtreecommitdiff
path: root/kolla
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-07-07 14:43:07 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-08-03 12:09:04 +0200
commit5e5844a6ad951536605f4c5eff32b71ee2736615 (patch)
treef4412812034e804c2a9f0709980d2d6988ce4ebe /kolla
parent69092eb574222564fcd3ce752a41db7fe51d61b8 (diff)
downloadkolla-5e5844a6ad951536605f4c5eff32b71ee2736615.tar.gz
kolla-5e5844a6ad951536605f4c5eff32b71ee2736615.zip
Add a way to disable build summary
List what was built/failed/skipped is quite long and not always interesting. Add a way to disable it. Change-Id: If171102e665dba627bac30ae81deee2d3ab10595
Diffstat (limited to 'kolla')
-rwxr-xr-xkolla/common/config.py4
-rwxr-xr-xkolla/image/build.py7
2 files changed, 7 insertions, 4 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 76f2fd577..52a8dc98d 100755
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -252,7 +252,9 @@ _CLI_OPTS = [
cfg.BoolOpt('quiet', short='q', default=False,
help='Do not print image logs'),
cfg.BoolOpt('enable-unbuildable', default=False,
- help='Enable images marked as unbuildable')
+ help='Enable images marked as unbuildable'),
+ cfg.BoolOpt('summary', default=True,
+ help='Show summary at the end of build')
]
_BASE_OPTS = [
diff --git a/kolla/image/build.py b/kolla/image/build.py
index ca5a0f0cd..1ef93bf71 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -1453,8 +1453,9 @@ def run_build():
build_queue.put(WorkerThread.tombstone)
raise
- results = kolla.summary()
+ if conf.summary:
+ results = kolla.summary()
+ if conf.format == 'json':
+ print(json.dumps(results))
kolla.cleanup()
- if conf.format == 'json':
- print(json.dumps(results))
return kolla.get_image_statuses()