Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Wrong format in list_clients function #5

Open
PfefferT opened this issue Nov 30, 2019 · 0 comments
Open

Wrong format in list_clients function #5

PfefferT opened this issue Nov 30, 2019 · 0 comments

Comments

@PfefferT
Copy link

r = self._session.get("{}/api/s/{}/stat/sta".format(self._baseurl, self._site, verify=self._verify_ssl), data="json={}")

should be

r = self._session.get("{}/api/s/{}/stat/sta".format(self._baseurl, self._site), verify=self._verify_ssl, data="json={}")

For description:
with the format function you can define what should be filled inside the curly brackets. the url has two defined curly brackets, but inside format you have defined 3 parameters and the verfiy is part of the request method :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant