fix(stack): unable to delete invalid stack [EE-5753] (#11813)

This commit is contained in:
Oscar Zhou
2024-06-04 11:34:02 +12:00
committed by GitHub
parent 9c70a43ac3
commit 4a7f96caf6
5 changed files with 48 additions and 18 deletions

View File

@@ -23,6 +23,7 @@ func Test_createEnvFile(t *testing.T) {
name: "should not add env file option if stack doesn't have env variables",
stack: &portainer.Stack{
ProjectPath: dir,
Env: nil,
},
expected: "",
},