Fix default tech
This commit is contained in:
parent
88262a27d8
commit
8c5a419efc
@ -563,6 +563,13 @@ func (c *Container) GetPrimaryTech() (apps.AppTech, error) {
|
|||||||
parts := strings.Split(string(*stdouterr), "/")
|
parts := strings.Split(string(*stdouterr), "/")
|
||||||
if len(parts) == 5 {
|
if len(parts) == 5 {
|
||||||
rawTech := parts[3]
|
rawTech := parts[3]
|
||||||
|
if rawTech == "default" {
|
||||||
|
return apps.AppTech{
|
||||||
|
Name: "default",
|
||||||
|
Version: "",
|
||||||
|
}, nil
|
||||||
|
}
|
||||||
|
|
||||||
techParts := strings.Split(rawTech, "-")
|
techParts := strings.Split(rawTech, "-")
|
||||||
if len(techParts) != 2 {
|
if len(techParts) != 2 {
|
||||||
return tech, errors.New("wrong number of tech parts (" + rawTech + ")")
|
return tech, errors.New("wrong number of tech parts (" + rawTech + ")")
|
||||||
|
Loading…
Reference in New Issue
Block a user