mirror of https://github.com/dapr/docs.git
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>
This commit is contained in:
parent
0accc68dee
commit
8db1846314
|
|
@ -106,7 +106,7 @@ with DaprClient() as client:
|
||||||
result = client.publish_event(
|
result = client.publish_event(
|
||||||
pubsub_name='order_pub_sub',
|
pubsub_name='order_pub_sub',
|
||||||
topic_name='orders',
|
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'}
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue