Skip to content

Commit

Permalink
Added bearer token to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
q1x committed Nov 29, 2024
1 parent b97b372 commit ce844b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/saltext/zabbix/modules/zabbix.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def _query(method, params, url, auth=None):

if method not in unauthenticated_methods:
data["auth"] = auth
header_dict["Authorization"] = "Bearer " + auth

data = salt.utils.json.dumps(data)

Expand Down

0 comments on commit ce844b9

Please sign in to comment.