summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-12-18 14:10:52 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-12-18 14:10:52 +0100
commit4fe97139c59fb5a0d2dea1b36fc5f5d88e0aa894 (patch)
tree21c189f7249d65e119ab7dc48a18d6ce9c651790 /cli
parent7d2678422eb26f0930932fd8814c68eae0ea3dda (diff)
cli: remove duplicate payload argument in get()HEADv0.3.3-16master
Use only one payload function argument in the http get() function.
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/cli.py b/cli/cli.py
index 0aaf885..cd40d09 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -74,7 +74,7 @@ class OgREST():
print(f"An error occurred while contacting ogserver: {e}")
return None
- def get(self, path, payload, payload=None):
+ def get(self, path, payload=None):
return self._request('GET', path, payload, expected_status={200})
def post(self, path, payload):