Added CoreOS, OpenSUSE, and Windows projects for searching images.
This commit is contained in:
parent
01130da729
commit
5b56970b09
|
@ -229,7 +229,7 @@ func (d *driverGCE) WaitForInstance(state, zone, name string) <-chan error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *driverGCE) getImage(name string) (image *compute.Image, err error) {
|
func (d *driverGCE) getImage(name string) (image *compute.Image, err error) {
|
||||||
projects := []string{d.projectId, "centos-cloud", "debian-cloud", "google-containers", "rhel-cloud", "suse-cloud"}
|
projects := []string{d.projectId, "centos-cloud", "coreos-cloud", "debian-cloud", "google-containers", "opensuse-cloud", "rhel-cloud", "suse-cloud", "windows-cloud"}
|
||||||
for _, project := range projects {
|
for _, project := range projects {
|
||||||
image, err = d.service.Images.Get(project, name).Do()
|
image, err = d.service.Images.Get(project, name).Do()
|
||||||
if err == nil && image != nil && image.SelfLink != "" {
|
if err == nil && image != nil && image.SelfLink != "" {
|
||||||
|
|
Loading…
Reference in New Issue