Merge pull request #12433 from hashicorp/jbardin/extra-args
missing args assignment after parsing flags
This commit is contained in:
commit
200d5787ca
|
@ -64,6 +64,16 @@ func TestEnv_createAndList(t *testing.T) {
|
|||
defer os.RemoveAll(td)
|
||||
defer testChdir(t, td)()
|
||||
|
||||
// make sure a vars file doesn't interfere
|
||||
err := ioutil.WriteFile(
|
||||
DefaultVarsFilename,
|
||||
[]byte(`foo = "bar"`),
|
||||
0644,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
newCmd := &EnvNewCommand{}
|
||||
|
||||
envs := []string{"test_a", "test_b", "test_c"}
|
||||
|
|
|
@ -19,6 +19,7 @@ func (c *EnvListCommand) Run(args []string) int {
|
|||
return 1
|
||||
}
|
||||
|
||||
args = cmdFlags.Args()
|
||||
configPath, err := ModulePath(args)
|
||||
if err != nil {
|
||||
c.Ui.Error(err.Error())
|
||||
|
|
Loading…
Reference in New Issue