fix(relative-path): not deploy git stack via unpacker EE-6043 (#10194)

This commit is contained in:
cmeng
2023-08-29 11:48:57 +12:00
committed by GitHub
parent adcfcdd6e3
commit 1e24451cc9
7 changed files with 17 additions and 10 deletions
+7
View File
@@ -47,3 +47,10 @@ func SanitizeLabel(value string) string {
func IsGitStack(stack *portainer.Stack) bool {
return stack.GitConfig != nil && len(stack.GitConfig.URL) != 0
}
// IsRelativePathStack checks if the stack is a git stack or not
func IsRelativePathStack(stack *portainer.Stack) bool {
// Always return false in CE
// This function is only for code consistency with EE
return false
}