diff options
| author | Zuul <zuul@review.opendev.org> | 2020-08-07 08:29:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-08-07 08:29:11 +0000 |
| commit | f1b332067c365bf1b92383f6e2d4c00955af5a9c (patch) | |
| tree | 12ffd4c4e3ce64c676a228ed19aa01f4e324a8f4 | |
| parent | 53d98f540f3af9972cf3040e529f7d2f14c4bc4b (diff) | |
| parent | 5e5844a6ad951536605f4c5eff32b71ee2736615 (diff) | |
| download | kolla-f1b332067c365bf1b92383f6e2d4c00955af5a9c.tar.gz kolla-f1b332067c365bf1b92383f6e2d4c00955af5a9c.zip | |
Merge "Add a way to disable build summary"
| -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. |
