Skip to content

Commit

Permalink
Default data=None for get_file, and reattach retries in send
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos committed Jun 6, 2022
1 parent 6a6c7cb commit b159dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/connection/httpapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def close(self):
super(Connection, self).close()

@ensure_connect
def _open_url(self, path, data, retries=None, **kwargs):
def _open_url(self, path, data=None, retries=None, **kwargs):
url_kwargs = dict(
timeout=self.get_option("persistent_command_timeout"),
validate_certs=self.get_option("validate_certs"),
Expand Down Expand Up @@ -304,7 +304,7 @@ def send(self, path, data, retries=None, **kwargs):
"""
Sends the command to the device over api
"""
response = self._open_url(path, data, **kwargs)
response = self._open_url(path, data, retries, **kwargs)

response_buffer = BytesIO()
resp_data = response.read()
Expand Down

0 comments on commit b159dcb

Please sign in to comment.