Skip to content

Commit 5af3bac

Browse files
djmailhotengelke
authored andcommitted
Remove comments about possible maintenance events during live migration (GoogleCloudPlatform#1906)
The comments do not match up with the published documentation which states that only the MIGRATE_ON_HOST_MAINTENANCE event will ever be published for a host to receive. (https://cloud.google.com/compute/docs/storing-retrieving-metadata#maintenanceevents)
1 parent aae2eae commit 5af3bac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compute/metadata/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ def wait_for_maintenance(callback):
5555
if r.text == 'NONE':
5656
maintenance_event = None
5757
else:
58-
# Possible events:
59-
# MIGRATE_ON_HOST_MAINTENANCE: instance will be migrated
60-
# TERMINATE_ON_HOST_MAINTENANCE: instance will be shut down
6158
maintenance_event = r.text
6259

6360
if maintenance_event != last_maintenance_event:

0 commit comments

Comments
 (0)