Single quote env var values.

This commit is contained in:
Josh Frye 2014-10-14 13:03:14 -07:00
parent 2fd3f64ab0
commit a667282e00
1 changed files with 6 additions and 0 deletions

View File

@ -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 {