diff --git a/docker/types.go b/docker/types.go index 579376c..5539c77 100644 --- a/docker/types.go +++ b/docker/types.go @@ -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))