Fix primary tech in case of single technology image
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

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

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