Fix default tech
This commit is contained in:
parent
88262a27d8
commit
8c5a419efc
1 changed files with 7 additions and 0 deletions
|
@ -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 + ")")
|
||||
|
|
Loading…
Reference in a new issue