diff --git a/builder/googlecompute/driver_gce.go b/builder/googlecompute/driver_gce.go index 37ba622e0..02a230cfe 100644 --- a/builder/googlecompute/driver_gce.go +++ b/builder/googlecompute/driver_gce.go @@ -103,7 +103,7 @@ func (d *driverGCE) CreateImage(name, description, family, zone, disk string, im Description: description, Name: name, Family: family, - Labels: labels, + Labels: image_labels, SourceDisk: fmt.Sprintf("%s%s/zones/%s/disks/%s", d.service.BasePath, d.projectId, zone, disk), SourceType: "RAW", } diff --git a/builder/googlecompute/image.go b/builder/googlecompute/image.go index 11fe7df55..fae69db75 100644 --- a/builder/googlecompute/image.go +++ b/builder/googlecompute/image.go @@ -5,6 +5,7 @@ import ( ) type Image struct { + Labels map[string]string Licenses []string Name string ProjectId string