Merge pull request #6648 from hashicorp/fix_6642
Update public google cloud image projects
This commit is contained in:
commit
819bda50d5
|
@ -168,7 +168,27 @@ func (d *driverGCE) DeleteDisk(zone, name string) (<-chan error, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *driverGCE) GetImage(name string, fromFamily bool) (*Image, 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", "windows-sql-cloud", "rhel-sap-cloud"}
|
projects := []string{
|
||||||
|
d.projectId,
|
||||||
|
// Public projects, drawn from
|
||||||
|
// https://cloud.google.com/compute/docs/images
|
||||||
|
"centos-cloud",
|
||||||
|
"cos-cloud",
|
||||||
|
"coreos-cloud",
|
||||||
|
"debian-cloud",
|
||||||
|
"rhel-cloud",
|
||||||
|
"rhel-sap-cloud",
|
||||||
|
"suse-cloud",
|
||||||
|
"suse-sap-cloud",
|
||||||
|
"ubuntu-os-cloud",
|
||||||
|
"windows-cloud",
|
||||||
|
"windows-sql-cloud",
|
||||||
|
"gce-uefi-images",
|
||||||
|
"gce-nvme",
|
||||||
|
// misc
|
||||||
|
"google-containers",
|
||||||
|
"opensuse-cloud",
|
||||||
|
}
|
||||||
var errs error
|
var errs error
|
||||||
for _, project := range projects {
|
for _, project := range projects {
|
||||||
image, err := d.GetImageFromProject(project, name, fromFamily)
|
image, err := d.GetImageFromProject(project, name, fromFamily)
|
||||||
|
|
Loading…
Reference in New Issue