Commit ec224771 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazonebs: Use unix timestamps

parent a436b913
......@@ -6,6 +6,7 @@ import (
"github.com/mitchellh/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"strconv"
"text/template"
"time"
)
......@@ -25,7 +26,7 @@ func (s *stepCreateAMI) Run(state map[string]interface{}) multistep.StepAction {
// Parse the name of the AMI
amiNameBuf := new(bytes.Buffer)
tData := amiNameData{
time.Now().UTC().String(),
strconv.FormatInt(time.Now().UTC().Unix(), 10),
}
t := template.Must(template.New("ami").Parse(config.AMIName))
......
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