Skip to content

Commit

Permalink
fix invalid python syntax for pubsub cloud events (#3786)
Browse files Browse the repository at this point in the history
make the publish_metadata fields valid python

Signed-off-by: Thomas Klinger <[email protected]>
  • Loading branch information
thomasklinger1234 authored Oct 5, 2023
1 parent 0accc68 commit 8db1846
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
)
```

Expand Down

0 comments on commit 8db1846

Please sign in to comment.