Skip to content

Commit 29207cb

Browse files
authored
Fix pubsub topic name format (GoogleCloudPlatform#2547)
Apparently the patch API tolerated a bad format name until a few weeks ago, so this error was uncaught until now.
1 parent 8919598 commit 29207cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

healthcare/api-client/dicom/dicom_stores.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@ def patch_dicom_store(
169169

170170
patch = {
171171
'notificationConfig': {
172-
'pubsubTopic': 'projects/{}/locations/{}/topics/{}'.format(
172+
'pubsubTopic': 'projects/{}/topics/{}'.format(
173173
project_id,
174-
cloud_region,
175174
pubsub_topic)}}
176175

177176
request = client.projects().locations().datasets().dicomStores().patch(

0 commit comments

Comments
 (0)