Merge pull request #1676 from mbrukman/gce-ubuntu
Added the Ubuntu image project for GCE.
This commit is contained in:
commit
289fdc62a4
|
@ -235,7 +235,7 @@ func (d *driverGCE) WaitForInstance(state, zone, name string) <-chan error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *driverGCE) getImage(img Image) (image *compute.Image, err error) {
|
func (d *driverGCE) getImage(img Image) (image *compute.Image, err error) {
|
||||||
projects := []string{img.ProjectId, "centos-cloud", "coreos-cloud", "debian-cloud", "google-containers", "opensuse-cloud", "rhel-cloud", "suse-cloud", "windows-cloud"}
|
projects := []string{img.ProjectId, "centos-cloud", "coreos-cloud", "debian-cloud", "google-containers", "opensuse-cloud", "rhel-cloud", "suse-cloud", "ubuntu-os-cloud", "windows-cloud"}
|
||||||
for _, project := range projects {
|
for _, project := range projects {
|
||||||
image, err = d.service.Images.Get(project, img.Name).Do()
|
image, err = d.service.Images.Get(project, img.Name).Do()
|
||||||
if err == nil && image != nil && image.SelfLink != "" {
|
if err == nil && image != nil && image.SelfLink != "" {
|
||||||
|
|
Loading…
Reference in New Issue