Added the Ubuntu image project for GCE.
The documentation: https://cloud.google.com/compute/docs/operating-systems#ubuntu shows that `ubuntu-os-cloud` is the proper project name.
This commit is contained in:
parent
ec216a52ef
commit
74e1be7469
|
@ -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) {
|
||||
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 {
|
||||
image, err = d.service.Images.Get(project, img.Name).Do()
|
||||
if err == nil && image != nil && image.SelfLink != "" {
|
||||
|
|
Loading…
Reference in New Issue