-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
gitlab_issue: title attribute not used when listing #7846
Comments
Files identified in the description: If these files are incorrect, please update the |
python-gitlab passes any kind of list filters to the API, the code you linked is used internally for the CLI rather than the python client. I'll double check but I doubt this is the case. |
I forgot to mention that the case I’ve error is when doing an issue update. Furthermore, those are the gitlab api and there’s no mention about |
Is it possible that it was |
I’m not aware of this change |
Summary
Using gitlab_issue module,
title
string is required but it's not used by underlying library python_gitlab's list method.More specifically, this call into gitlab_issue module passes a keyword "title" to python-gitlab library, that does not use it for "list" method.
What happens is that many issues are returned, filtering only through the state (that's an admitted filter), ignoring the title.
Issue Type
Bug Report
Component Name
gitlab_issue
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
debian trixie
Steps to Reproduce
Expected Results
title
parameter used to filter gitlab's issue, or another way to obtain only one issue to be then changed.task above should be executed changing the issue's assignee, searched through title, with specified one.
Actual Results
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Multiple Issues matched search criteria."}
Code of Conduct
Solution
"search" is the keyword to be used, instead of "title".
The text was updated successfully, but these errors were encountered: