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 May 11, 2023
1 parent 980a652 commit 112b160
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 @@ -273,7 +273,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 @@ -335,7 +335,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 112b160

Please sign in to comment.