From ed6d999b1f6ba48754cf173d8585fc40bcf7c1cb Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 27 Apr 2018 11:24:08 -0700 Subject: [PATCH] add windows-sql-cloud to the list of projects to check for an image name --- builder/googlecompute/driver_gce.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/googlecompute/driver_gce.go b/builder/googlecompute/driver_gce.go index 91f20a58a..e24c4c768 100644 --- a/builder/googlecompute/driver_gce.go +++ b/builder/googlecompute/driver_gce.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "google.golang.org/api/compute/v1" + compute "google.golang.org/api/compute/v1" "github.com/hashicorp/packer/common" "github.com/hashicorp/packer/helper/useragent" @@ -168,7 +168,7 @@ func (d *driverGCE) DeleteDisk(zone, name string) (<-chan error, error) { } func (d *driverGCE) GetImage(name string, fromFamily bool) (*Image, error) { - projects := []string{d.projectId, "centos-cloud", "coreos-cloud", "cos-cloud", "debian-cloud", "google-containers", "opensuse-cloud", "rhel-cloud", "suse-cloud", "ubuntu-os-cloud", "windows-cloud", "gce-nvme"} + projects := []string{d.projectId, "centos-cloud", "coreos-cloud", "cos-cloud", "debian-cloud", "google-containers", "opensuse-cloud", "rhel-cloud", "suse-cloud", "ubuntu-os-cloud", "windows-cloud", "gce-nvme", "windows-sql-cloud"} var errs error for _, project := range projects { image, err := d.GetImageFromProject(project, name, fromFamily)