Single quote env var values.

pull/1587/head
Josh Frye 12 years ago
parent 2fd3f64ab0
commit a667282e00

@ -178,6 +178,12 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
}
}
// Single quote env var values
for key := range p.config.Vars {
vs := strings.SplitN(p.config.Vars[key], "=", 2)
p.config.Vars[key] = fmt.Sprintf("%s='%s'", vs[0], vs[1])
}
if p.config.RawStartRetryTimeout != "" {
p.config.startRetryTimeout, err = time.ParseDuration(p.config.RawStartRetryTimeout)
if err != nil {

Loading…
Cancel
Save