Fix default tech
All checks were successful
Unittests / unittests (push) Successful in 9s
Unittests / deploy-dev (push) Successful in 43s

This commit is contained in:
Adam Štrauch 2024-05-26 01:10:14 +02:00
parent 88262a27d8
commit 8c5a419efc
Signed by: cx
GPG key ID: 7262DAFE292BCE20

View file

@ -563,6 +563,13 @@ func (c *Container) GetPrimaryTech() (apps.AppTech, error) {
parts := strings.Split(string(*stdouterr), "/")
if len(parts) == 5 {
rawTech := parts[3]
if rawTech == "default" {
return apps.AppTech{
Name: "default",
Version: "",
}, nil
}
techParts := strings.Split(rawTech, "-")
if len(techParts) != 2 {
return tech, errors.New("wrong number of tech parts (" + rawTech + ")")