Skip to content

Commit

Permalink
jira/client.py: Map IssueLinkType array to string array
Browse files Browse the repository at this point in the history
Equality check between IssueLinkType and string always returns false.
Function decorator casts IssueLinkType parameters to string, so a
warning is always logged. This fixes that issue.

Closes: pycontribs#1875
Signed-off-by: Shymon Samsel <[email protected]>
  • Loading branch information
Shymon Samsel authored and Shymon Samsel committed Jul 17, 2024
1 parent b6111da commit 5f74ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2929,7 +2929,7 @@ def create_issue_link(
Response
"""
# let's see if we have the right issue link 'type' and fix it if needed
issue_link_types = self.issue_link_types()
issue_link_types = list(map(lambda x: x.name, self.issue_link_types()))

if type not in issue_link_types:
self.log.warning(
Expand Down

0 comments on commit 5f74ad5

Please sign in to comment.