Skip to content

Commit c48c488

Browse files
committed
Default data=None for get_file, and reattach retries in send
1 parent c2406a6 commit c48c488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/connection/httpapi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def close(self):
273273
super(Connection, self).close()
274274

275275
@ensure_connect
276-
def _open_url(self, path, data, retries=None, **kwargs):
276+
def _open_url(self, path, data=None, retries=None, **kwargs):
277277
url_kwargs = dict(
278278
timeout=self.get_option("persistent_command_timeout"),
279279
validate_certs=self.get_option("validate_certs"),
@@ -335,7 +335,7 @@ def send(self, path, data, retries=None, **kwargs):
335335
"""
336336
Sends the command to the device over api
337337
"""
338-
response = self._open_url(path, data, **kwargs)
338+
response = self._open_url(path, data, retries, **kwargs)
339339

340340
response_buffer = BytesIO()
341341
resp_data = response.read()

0 commit comments

Comments
 (0)