Skip to content

Commit

Permalink
Fix tuple value passed as param
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Oct 24, 2024
1 parent 6332273 commit 9215acb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zabbix_cli/pyzabbix/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def parse_name_or_id_arg(
) -> ParamsType:
"""Parse a tuple of names or IDs and add them to an existing params dict."""
search_params = search_params or {}

# If we have a wildcard, we can omit names or IDs entirely
if "*" in names_or_ids:
names_or_ids = tuple()

Expand Down Expand Up @@ -2211,7 +2213,7 @@ def acknowledge_event(
change_to_cause=change_to_cause,
change_to_symptom=change_to_symptom,
)
params: ParamsType = {"eventids": event_ids, "action": action}
params: ParamsType = {"eventids": list(event_ids), "action": action}
if message:
params["message"] = message
try:
Expand Down

0 comments on commit 9215acb

Please sign in to comment.