Merge pull request #4518 from AlexLov/bugfix_image_family

[googlecompute] fix bug of creating image from custom image_family
This commit is contained in:
Matthew Hooker 2017-02-21 10:58:23 -08:00 committed by GitHub
commit 2381bfa8ad
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func getImage(c *Config, d Driver) (*Image, error) {
if c.SourceImageProjectId == "" { if c.SourceImageProjectId == "" {
return d.GetImage(name, fromFamily) return d.GetImage(name, fromFamily)
} else { } else {
return d.GetImageFromProject(c.SourceImageProjectId, c.SourceImage, fromFamily) return d.GetImageFromProject(c.SourceImageProjectId, name, fromFamily)
} }
} }