diff --git a/internal/commands/vaultsecrets/run/run.go b/internal/commands/vaultsecrets/run/run.go index a0c2d9a8..9a7847c0 100644 --- a/internal/commands/vaultsecrets/run/run.go +++ b/internal/commands/vaultsecrets/run/run.go @@ -142,8 +142,6 @@ func getAllSecretsForEnv(opts *RunOpts) ([]string, error) { secs, err := fetchPaginatedSecrets(opts) if err != nil { return nil, err - } else if len(secs) == 0 { - return nil, fmt.Errorf("no secrets returned from app") } result := os.Environ() diff --git a/internal/commands/vaultsecrets/run/run_test.go b/internal/commands/vaultsecrets/run/run_test.go index 4daa855b..068a1abc 100644 --- a/internal/commands/vaultsecrets/run/run_test.go +++ b/internal/commands/vaultsecrets/run/run_test.go @@ -181,12 +181,6 @@ func TestRunRun(t *testing.T) { }, }, }, - { - Name: "No Secrets", - RespErr: false, - ErrMsg: "no secrets returned from app", - Secrets: []*preview_models.Secrets20231128OpenSecret{}, - }, } for _, c := range cases {