Fix primary tech in case of single technology image
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
Adam Štrauch 2021-12-22 01:12:42 +01:00
parent c2e9b1cc18
commit a4beb9727e
Signed by: cx
GPG Key ID: 018304FFA8988F8D
1 changed files with 2 additions and 1 deletions

View File

@ -306,7 +306,8 @@ func (c *Container) GetPrimaryTech() (apps.AppTech, error) {
}
}
return tech, errors.New("wrong number of path parts")
// Probably single technology image in case the output is empty
return tech, nil
}
// GetTechs returns all techs available in the container