Fix returning apps when no host found, fixes #1427

This commit is contained in:
Alexander Zobnin
2022-04-27 13:48:20 +03:00
parent a09d8a983e
commit 37280079ac

View File

@@ -181,7 +181,7 @@ func (ds *Zabbix) GetApps(ctx context.Context, groupFilter string, hostFilter st
if err != nil { if err != nil {
return nil, err return nil, err
} }
var hostids []string hostids := make([]string, 0)
for _, host := range hosts { for _, host := range hosts {
hostids = append(hostids, host.ID) hostids = append(hostids, host.ID)
} }