fix: don't read TIMEOUT for version= label

Closes coop-cloud/organising#451
This commit is contained in:
2023-09-21 11:33:45 +02:00
parent 8788558cf1
commit 3d1158a425
3 changed files with 33 additions and 2 deletions

View File

@ -419,7 +419,7 @@ func GetVersionLabelLocal(recipe Recipe) (string, error) {
for _, service := range recipe.Config.Services {
for label, value := range service.Deploy.Labels {
if strings.HasPrefix(label, "coop-cloud") {
if strings.HasPrefix(label, "coop-cloud") && strings.Contains(label, "version") {
return value, nil
}
}