Restore the old message format.

The message format broke in 3cb41aa5dc

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.
This commit is contained in:
Ralph Bean
2017-09-15 16:54:12 -04:00
committed by Igor Gnatenko
parent 7bb88621d1
commit 3b93dc7143

View File

@@ -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,
)