mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
jira - fixed isinstance error (#2236)
* fixed isinstance error * added changelog fragment
This commit is contained in:
parent
081c534d40
commit
bfd6d2b3aa
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/2236-jira-isinstance.yml
Normal file
2
changelogs/fragments/2236-jira-isinstance.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- jira - fixed calling of ``isinstance`` (https://github.com/ansible-collections/community.general/issues/2234).
|
|
@ -389,7 +389,7 @@ def request(
|
|||
auth = to_text(base64.b64encode(to_bytes('{0}:{1}'.format(user, passwd), errors='surrogate_or_strict')))
|
||||
|
||||
headers = {}
|
||||
if isinstance(additional_headers) == dict:
|
||||
if isinstance(additional_headers, dict):
|
||||
headers = additional_headers.copy()
|
||||
headers.update({
|
||||
"Content-Type": content_type,
|
||||
|
|
Loading…
Reference in a new issue