From 3b93dc7143c562711aa9d8d98d60df484ef05849 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 15 Sep 2017 16:54:12 -0400 Subject: [PATCH] Restore the old message format. The message format broke in 3cb41aa5dc2e11ff698cb2c3775ae96534d02dff The resulted in tracebacks in pdc-updater when it tried to learn things about a module that was just submitted. It relied on certain fields (`stream`) being in the message body. This change restores those fields to get things working again. --- module_build_service/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module_build_service/models.py b/module_build_service/models.py index 36d6fe54..843cd522 100644 --- a/module_build_service/models.py +++ b/module_build_service/models.py @@ -245,7 +245,7 @@ class ModuleBuild(MBSBase): module_build_service.messaging.publish( service='mbs', topic='module.state.change', - msg=module.json(), # Note the state is "init" here... + msg=module.extended_json(), # Note the state is "init" here... conf=conf, ) return module @@ -274,7 +274,7 @@ class ModuleBuild(MBSBase): module_build_service.messaging.publish( service='mbs', topic='module.state.change', - msg=self.json(), # Note the state is "init" here... + msg=self.extended_json(), conf=conf, )