fix Filter param (can accept array or single value)

This commit is contained in:
Alexander Zobnin
2020-01-14 18:39:21 +03:00
parent 72cca28dab
commit a7a72f5697
2 changed files with 5 additions and 5 deletions

View File

@@ -293,7 +293,7 @@ func (ds *ZabbixDatasource) getAllItems(ctx context.Context, dsInfo *datasource.
Output: &zabbixParamOutput{Fields: []string{"itemid", "name", "key_", "value_type", "hostid", "status", "state"}},
SortField: "name",
WebItems: true,
Filter: map[string][]int{},
Filter: map[string]interface{}{},
SelectHosts: []string{"hostid", "name"},
HostIDs: hostids,
AppIDs: appids,