Commit f6b2b204 by Chif Gergő

Fix message type

parent ca954541
Pipeline #1080 passed with stage
in 1 minute 40 seconds
......@@ -257,7 +257,10 @@ class Instance(BaseMachineDescriptor):
if self.status is not remote.status:
self.status = remote.status
channels = get_channel_layer()
async_to_sync(channels.group_send)(str(self.id), {"type": "status.status_changed"})
async_to_sync(channels.group_send)(
str(self.id), {"type": "status_changed",
"status": self.status
})
self.save()
@classmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment