aboutsummaryrefslogtreecommitdiff
path: root/kolla/image
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-10-20 10:54:17 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-10-27 11:13:18 +0100
commitc4c28814e06fc0f90f7679ef9b1831cd3d89f692 (patch)
treeb470167d23194cfde5448669c5ad7981d13eddd4 /kolla/image
parentefaab1f3a568543a4a22d6b0789e8210d00eec4f (diff)
downloadkolla-c4c28814e06fc0f90f7679ef9b1831cd3d89f692.tar.gz
kolla-c4c28814e06fc0f90f7679ef9b1831cd3d89f692.zip
build: unbreak JSON serializer on failed builds
Commit 3fa5a236b4d8a31a57e14cbb482e664d5cc0111c converted status consts into Enum. But not completely - this fix gets it done properly. Also fixed tests. Change-Id: Ifdacf62cd4b99c452bd09de7c6cde6fbee75560d
Diffstat (limited to 'kolla/image')
-rwxr-xr-xkolla/image/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 84fc32b01..3cfbbc202 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -1168,10 +1168,10 @@ class KollaWorker(object):
LOG.info("Images that failed to build")
LOG.info("===========================")
for name, status in sorted(self.image_statuses_bad.items()):
- LOG.error('%s Failed with status: %s', name, status)
+ LOG.error('%s Failed with status: %s', name, status.value)
results['failed'].append({
'name': name,
- 'status': status,
+ 'status': status.value,
})
if self.conf.logs_dir and status == Status.ERROR:
linkname = os.path.join(self.conf.logs_dir,