Correcting type in put method to get uri
This commit is contained in:
2
main.py
2
main.py
@@ -47,7 +47,7 @@ class PortainerClient:
|
|||||||
|
|
||||||
def _put(self, uri, payload):
|
def _put(self, uri, payload):
|
||||||
response = requests.put(
|
response = requests.put(
|
||||||
f"{self.api_url}/uri",
|
f"{self.api_url}/{uri}",
|
||||||
headers=self._get_headers(),
|
headers=self._get_headers(),
|
||||||
json=payload
|
json=payload
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user