We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b985032 + 3a81d97 commit eb7c6d1Copy full SHA for eb7c6d1
cmd/up.go
@@ -3,6 +3,7 @@ package cmd
3
import (
4
"flag"
5
"strings"
6
+ "os"
7
8
"github.com/mitchellh/cli"
9
"github.com/posener/complete"
@@ -58,8 +59,14 @@ func (c *UpCommand) Run(args []string) int {
58
59
60
vagrantUp := execCommandWithOutput("vagrant", vagrantArgs, c.UI)
61
62
+ env := os.Environ()
63
+ // To allow mockExecCommand injects its environment variables.
64
+ if vagrantUp.Env != nil {
65
+ env = vagrantUp.Env
66
+ }
67
+
68
if !c.withGalaxy {
- vagrantUp.Env = append(vagrantUp.Env, "SKIP_GALAXY=true")
69
+ vagrantUp.Env = append(env, "SKIP_GALAXY=true")
70
}
71
72
err := vagrantUp.Run()
0 commit comments