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:
Thomas Klinger 2023-10-05 22:10:52 +02:00 committed by GitHub
parent 0accc68dee
commit 8db1846314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'}
)
```