Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/zabbixapi/zabbix_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ func (api *ZabbixAPI) request(ctx context.Context, method string, params ZabbixA
"params": normalizeParams(ctx, method, params, version),
}

// Zabbix v7.2 and later deprecated `auth` parameter and replaced it with using Auth header
// Zabbix v6.4 and later deprecated `auth` parameter and replaced it with using Auth header
// `auth` parameter throws an error in new versions so we need to add it only for older versions
if auth != "" && version < 72 {
if auth != "" && version < 64 {
apiRequest["auth"] = auth
}

Expand Down