diff --git a/pkg/zabbix/methods.go b/pkg/zabbix/methods.go index 4c40e8e..26ec432 100644 --- a/pkg/zabbix/methods.go +++ b/pkg/zabbix/methods.go @@ -181,7 +181,7 @@ func (ds *Zabbix) GetApps(ctx context.Context, groupFilter string, hostFilter st if err != nil { return nil, err } - var hostids []string + hostids := make([]string, 0) for _, host := range hosts { hostids = append(hostids, host.ID) }