Merge pull request #5274 from mmerdes/master

Fix timestamp interpolation in created file name
pull/5279/head
Matthew Hooker 9 years ago committed by GitHub
commit 28894fb418

@ -51,7 +51,8 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
// Defaults
if c.VMName == "" {
c.VMName = fmt.Sprintf("packer-%s-{{timestamp}}", c.PackerBuildName)
c.VMName = fmt.Sprintf(
"packer-%s-%d", c.PackerBuildName, interpolate.InitTime.Unix())
}
// Prepare the errors

Loading…
Cancel
Save