Skip to content

Commit 09210ec

Browse files
author
Ace Nassri
authored
chore(functions/label_gce_instance): update GCE library (GoogleCloudPlatform#7239)
* chore(functions/label_gce_instance): update GCE library * Fix lint
1 parent 68b3ce3 commit 09210ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

functions/v2/label_gce_instance/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def label_gce_instance(cloudevent):
7676

7777
# Perform instance-labeling API call
7878
try:
79-
instances_client.set_labels(request)
79+
instances_client.set_labels_unary(request)
8080
print(f'Labelled VM instance {instance_name} with creator: {creator}')
8181
except GoogleAPIError as e:
8282
# Swallowing the exception means failed invocations WON'T be retried
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-compute==0.8.0
1+
google-cloud-compute==0.9.0

0 commit comments

Comments
 (0)