Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Specifying multiple names or IDs causing only last value to be selected #282

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

pederhan
Copy link
Member

@pederhan pederhan commented Jan 17, 2025

Fixes several commands that allow for multiple names or ids to be specified. A bug caused the parse_name_or_id_arg function to overwrite the filter value with the last value in the list of usernames or ids when search=False. Now, we automatically assume we are searching when given multiple values, as one cannot filter by multiple names.

It is unclear exactly which commands this affected, but in any case, this PR should now make any commands that use the parse_name_or_id_arg to behave consistently and in the way we expect.

Furthermore, some bugs related to building params for certain commands in Zabbix >= 6.0 was discovered and fixed (see changelog).

@pederhan pederhan changed the title Fix maintenance and search Fix: Specifying multiple names or IDs causing only last value to be selected Jan 17, 2025
@pederhan pederhan merged commit 7eed0f7 into unioslo:master Jan 17, 2025
5 checks passed
@pederhan pederhan deleted the fix-maintenance-and-search branch January 17, 2025 14:49
@pederhan pederhan mentioned this pull request Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant