From a5c090e4b931ea97e36a56bd009ce00356c93d9d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Dec 2021 11:40:01 +0100 Subject: [PATCH] chore(deps): update dependency google-cloud-compute to v0.9.0 (#171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency google-cloud-compute to v0.9.0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google-cloud-compute/samples/snippets/requirements.txt | 2 +- .../samples/snippets/sample_start_stop.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-compute/samples/snippets/requirements.txt b/packages/google-cloud-compute/samples/snippets/requirements.txt index 3d8cb4e6cb2f..e2693e6f2750 100644 --- a/packages/google-cloud-compute/samples/snippets/requirements.txt +++ b/packages/google-cloud-compute/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-compute==0.8.0 \ No newline at end of file +google-cloud-compute==0.9.0 \ No newline at end of file diff --git a/packages/google-cloud-compute/samples/snippets/sample_start_stop.py b/packages/google-cloud-compute/samples/snippets/sample_start_stop.py index 80eb95f8e4e9..a73f05ba53fa 100644 --- a/packages/google-cloud-compute/samples/snippets/sample_start_stop.py +++ b/packages/google-cloud-compute/samples/snippets/sample_start_stop.py @@ -43,7 +43,9 @@ def start_instance(project_id: str, zone: str, instance_name: str): instance_client = compute_v1.InstancesClient() op_client = compute_v1.ZoneOperationsClient() - op = instance_client.start_unary(project=project_id, zone=zone, instance=instance_name) + op = instance_client.start_unary( + project=project_id, zone=zone, instance=instance_name + ) while op.status != compute_v1.Operation.Status.DONE: op = op_client.wait(operation=op.name, zone=zone, project=project_id)