mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
Automatically add description to snapshots
This commit is contained in:
@@ -121,10 +121,13 @@ class Gcloud(object):
|
||||
project = self.project
|
||||
if not zone:
|
||||
zone = self.zone
|
||||
|
||||
body = {
|
||||
'name': name,
|
||||
'labels': {'pod-name': pod_name},
|
||||
'description': 'from-pod: {0}'.format(pod_name)
|
||||
}
|
||||
|
||||
return self.api.disks().createSnapshot(project=project, zone=zone,
|
||||
disk=disk, body=body).execute()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user