mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
jira: log error messages in "errors" key (#311)
Jira's API can return a empty "errorMessages" list, and the real error is in the "errors" object. This happens, for example, if a user tries to file a ticket in a project that does not exist (tested with Jira v7.13.8) Check both "errorMessages" and "errors", and report both values with fail_json(). Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
f5ed0689c1
commit
041824b98e
2 changed files with 12 additions and 3 deletions
2
changelogs/fragments/311-jira-error-handling.yaml
Normal file
2
changelogs/fragments/311-jira-error-handling.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- jira - improve error message handling (https://github.com/ansible-collections/community.general/pull/311).
|
Loading…
Add table
Add a link
Reference in a new issue