Fix timestamp interpolation in mount path

Closes #1
pull/7294/head
Miłosz Smółka 7 years ago
parent 3d3e933f48
commit e7e84f04e7

@ -168,7 +168,11 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
}
if c.ChrootMountPath == "" {
c.ChrootMountPath = "/mnt/packer-hyperone-volumes/{{timestamp}}"
path, err := interpolate.Render("/mnt/packer-hyperone-volumes/{{timestamp}}", nil)
if err != nil {
return nil, nil, err
}
c.ChrootMountPath = path
}
if c.ChrootMounts == nil {

Loading…
Cancel
Save