Hide gathering tech info errors
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
Adam Štrauch 2021-12-20 19:13:45 +01:00
parent 2a545daedb
commit fd3c85bed4
Signed by: cx
GPG key ID: 018304FFA8988F8D

View file

@ -287,7 +287,8 @@ func (c *Container) GetPrimaryTech() (apps.AppTech, error) {
stdouterr, err := driver.Exec(c.App.Name, []string{"readlink", "/srv/bin/primary_tech"}, "", []string{}, true)
if err != nil {
return tech, err
// in case there is an error just return empty response
return tech, nil
}
if len(string(*stdouterr)) > 0 {
@ -316,7 +317,8 @@ func (c *Container) GetTechs() (apps.AppTechs, error) {
stdouterr, err := driver.Exec(c.App.Name, []string{"ls", "/opt/techs"}, "", []string{}, true)
if err != nil {
return techs, err
// in case there is an error just return empty response
return techs, nil
}
techsRaw := strings.Fields(string(*stdouterr))