Commit 775450f4 authored by Chris Bednarski's avatar Chris Bednarski

Merge branch 'fix_gce_image_name' of https://github.com/samitpal/packer into b-google-image-name

parents bd6c31c2 6d6b3e1a
......@@ -73,7 +73,13 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
}
if c.ImageName == "" {
c.ImageName = "packer-{{timestamp}}"
img, err := interpolate.Render("packer-{{timestamp}}", nil)
if err != nil {
panic(err)
}
// Default to packer-{{ unix timestamp (utc) }}
c.ImageName = img
}
if c.InstanceName == "" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment