diff options
| -rwxr-xr-x | kolla/common/config.py | 4 | ||||
| -rwxr-xr-x | kolla/image/build.py | 7 | ||||
| -rw-r--r-- | releasenotes/notes/new-option-summary-3acc4e62a0c7ac40.yaml | 4 |
3 files changed, 11 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() diff --git a/releasenotes/notes/new-option-summary-3acc4e62a0c7ac40.yaml b/releasenotes/notes/new-option-summary-3acc4e62a0c7ac40.yaml new file mode 100644 index 000000000..bcb6fce53 --- /dev/null +++ b/releasenotes/notes/new-option-summary-3acc4e62a0c7ac40.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Added new option "--(no)summary" to allow to hide after build summary. |
