Correcting type in put method to get uri

This commit is contained in:
2024-04-25 11:08:49 +02:00
parent 02f73bcf27
commit 10a4c05912

View File

@@ -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
) )