1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

jira - fixed isinstance error (#2236) (#2237)

* fixed isinstance error

* added changelog fragment

(cherry picked from commit bfd6d2b3aa)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2021-04-14 10:00:18 +02:00 committed by GitHub
parent 89498d3650
commit 5cdc70bda9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- jira - fixed calling of ``isinstance`` (https://github.com/ansible-collections/community.general/issues/2234).

View file

@ -389,7 +389,7 @@ def request(
auth = to_text(base64.b64encode(to_bytes('{0}:{1}'.format(user, passwd), errors='surrogate_or_strict'))) auth = to_text(base64.b64encode(to_bytes('{0}:{1}'.format(user, passwd), errors='surrogate_or_strict')))
headers = {} headers = {}
if isinstance(additional_headers) == dict: if isinstance(additional_headers, dict):
headers = additional_headers.copy() headers = additional_headers.copy()
headers.update({ headers.update({
"Content-Type": content_type, "Content-Type": content_type,