missing args assignment after parsing flags
`env list` was missing the args re-assignment after parsing the flags. This is only a problem if the variables are automatically be populated as arguments from a tfvars file.
This commit is contained in:
parent
a2d78b62aa
commit
e58a02405e
|
@ -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