Skip to content

Commit 11dc895

Browse files
committed
Add comments
1 parent 8ca8f6d commit 11dc895

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

compute/client_library/ingredients/disks/attach_regional_disk_force.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def attach_disk_force(
2626
project_id: str, vm_name: str, vm_zone: str, disk_name: str, disk_region: str
2727
) -> None:
2828
"""
29-
Attaches a regional disk to a compute instance with force attachment.
29+
Force-attaches a regional disk to a compute instance, even if it is
30+
still attached to another instance. Useful when the original instance
31+
cannot be reached or disconnected.
3032
Args:
3133
project_id (str): The ID of the Google Cloud project.
3234
vm_name (str): The name of the compute instance you want to attach a disk to.

compute/client_library/snippets/disks/attach_regional_disk_force.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def attach_disk_force(
8282
project_id: str, vm_name: str, vm_zone: str, disk_name: str, disk_region: str
8383
) -> None:
8484
"""
85-
Attaches a regional disk to a compute instance with force attachment.
85+
Force-attaches a regional disk to a compute instance, even if it is
86+
still attached to another instance. Useful when the original instance
87+
cannot be reached or disconnected.
8688
Args:
8789
project_id (str): The ID of the Google Cloud project.
8890
vm_name (str): The name of the compute instance you want to attach a disk to.

0 commit comments

Comments
 (0)