Merge pull request #5274 from mmerdes/master
Fix timestamp interpolation in created file name
This commit is contained in:
commit
28894fb418
|
@ -51,7 +51,8 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
if c.VMName == "" {
|
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
|
// Prepare the errors
|
||||||
|
|
Loading…
Reference in New Issue