Fix single technology image
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

It caused premature ending of the status processing in the admin.
This commit is contained in:
Adam Štrauch 2021-12-22 01:02:23 +01:00
parent 7fe8dfcd9b
commit c2e9b1cc18
Signed by: cx
GPG key ID: 018304FFA8988F8D

View file

@ -321,6 +321,11 @@ func (c *Container) GetTechs() (apps.AppTechs, error) {
return techs, nil
}
// If the directory doesn't exist it's single technology image
if strings.Contains(string(*stdouterr), "No such file or directory") {
return techs, nil
}
techsRaw := strings.Fields(string(*stdouterr))
for _, techRaw := range techsRaw {
techParts := strings.Split(techRaw, "-")