Skip to content

Commit 6d4927f

Browse files
nickygerritsenvmcj
authored andcommitted
Use correct variable for uploading JSON to API in Python helper.
(cherry picked from commit 438f6bb)
1 parent 53ab6cf commit 6d4927f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc-tools/dj_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def do_api_request(name: str, method: str = 'GET', jsonData: dict = {}):
7575
if method == 'GET':
7676
response = requests.get(url, headers=headers, verify=ca_check)
7777
elif method == 'PUT':
78-
response = requests.put(url, headers=headers, verify=ca_check, json=json)
78+
response = requests.put(url, headers=headers, verify=ca_check, json=jsonData)
7979
except requests.exceptions.SSLError as e:
8080
ca_check = not confirm(
8181
"Can not verify certificate, ignore certificate check?", False)

0 commit comments

Comments
 (0)