Skip to content

Commit

Permalink
chore(deps): update dependency google-cloud-compute to v0.9.0 (#171)
Browse files Browse the repository at this point in the history
* 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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
renovate-bot and gcf-owl-bot[bot] authored Dec 14, 2021
1 parent 8e443aa commit 3a81c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compute/compute/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-compute==0.8.0
google-cloud-compute==0.9.0
4 changes: 3 additions & 1 deletion compute/compute/snippets/sample_start_stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3a81c03

Please sign in to comment.