Add subscription and notification for resource changes; fix a bug while pserver node...
[pti/o2.git] / o2common / adapter / redis_eventpublisher.py
index 9fac313..e128ef7 100644 (file)
@@ -28,4 +28,4 @@ r = redis.Redis(**config.get_redis_host_and_port())
 
 def publish(channel, event: events.Event):
     logger.info("publishing: channel=%s, event=%s", channel, event)
-    r.publish(channel, json.dumps(asdict(event)))
+    r.publish(channel, json.dumps(asdict(event), default=str))