Hide gathering tech info errors
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details

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
1 changed files with 4 additions and 2 deletions

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))