From daca497679cac20658186579b0e5bfd28423bd8a Mon Sep 17 00:00:00 2001 From: downtownallday Date: Sat, 7 Sep 2024 10:48:05 -0400 Subject: [PATCH] remove method argument use, it breaks other commands --- management/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/cli.py b/management/cli.py index 28aa3912..f48b889c 100755 --- a/management/cli.py +++ b/management/cli.py @@ -24,7 +24,7 @@ def mgmt(cmd, data=None, is_json=False, method='GET'): setup_key_auth(mgmt_uri) - req = urllib.request.Request(mgmt_uri + cmd, urllib.parse.urlencode(data).encode("utf8") if data else None, method=method) + req = urllib.request.Request(mgmt_uri + cmd, urllib.parse.urlencode(data).encode("utf8") if data else None) #, method=method) try: response = urllib.request.urlopen(req) except urllib.error.HTTPError as e: