From 8db1846314720d702eca19770304f5fcf4c20485 Mon Sep 17 00:00:00 2001 From: Thomas Klinger <39558817+thomasklinger1234@users.noreply.github.com> Date: Thu, 5 Oct 2023 22:10:52 +0200 Subject: [PATCH] fix invalid python syntax for pubsub cloud events (#3786) make the publish_metadata fields valid python Signed-off-by: Thomas Klinger <39558817+thomasklinger1234@users.noreply.github.com> --- .../building-blocks/pubsub/pubsub-cloudevents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-cloudevents.md b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-cloudevents.md index b6f46bb2970..47c115ef6c2 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-cloudevents.md +++ b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-cloudevents.md @@ -106,7 +106,7 @@ with DaprClient() as client: result = client.publish_event( pubsub_name='order_pub_sub', topic_name='orders', - publish_metadata={'cloudevent.id: 'd99b228f-6c73-4e78-8c4d-3f80a043d317', cloudevent.source: 'payment'} + publish_metadata={'cloudevent.id': 'd99b228f-6c73-4e78-8c4d-3f80a043d317', 'cloudevent.source': 'payment'} ) ```