diff options
Diffstat (limited to 'vendor/github.com/mitchellh/packer/builder/vmware/vmx/config.go')
-rw-r--r-- | vendor/github.com/mitchellh/packer/builder/vmware/vmx/config.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/mitchellh/packer/builder/vmware/vmx/config.go b/vendor/github.com/mitchellh/packer/builder/vmware/vmx/config.go index 93e8347c..145705fd 100644 --- a/vendor/github.com/mitchellh/packer/builder/vmware/vmx/config.go +++ b/vendor/github.com/mitchellh/packer/builder/vmware/vmx/config.go @@ -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 |