Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoughtseize1 committed Dec 20, 2024
1 parent 8ca8f6d commit 11dc895
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def attach_disk_force(
project_id: str, vm_name: str, vm_zone: str, disk_name: str, disk_region: str
) -> None:
"""
Attaches a regional disk to a compute instance with force attachment.
Force-attaches a regional disk to a compute instance, even if it is
still attached to another instance. Useful when the original instance
cannot be reached or disconnected.
Args:
project_id (str): The ID of the Google Cloud project.
vm_name (str): The name of the compute instance you want to attach a disk to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def attach_disk_force(
project_id: str, vm_name: str, vm_zone: str, disk_name: str, disk_region: str
) -> None:
"""
Attaches a regional disk to a compute instance with force attachment.
Force-attaches a regional disk to a compute instance, even if it is
still attached to another instance. Useful when the original instance
cannot be reached or disconnected.
Args:
project_id (str): The ID of the Google Cloud project.
vm_name (str): The name of the compute instance you want to attach a disk to.
Expand Down

0 comments on commit 11dc895

Please sign in to comment.