Hide gathering tech info errors
This commit is contained in:
parent
2a545daedb
commit
fd3c85bed4
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user