mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
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:
committed by
Igor Gnatenko
parent
7bb88621d1
commit
3b93dc7143
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user