Skip to content

Commit b159dcb

Browse files
committed
Default data=None for get_file, and reattach retries in send
1 parent 6a6c7cb commit b159dcb

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
@@ -255,7 +255,7 @@ def close(self):
255255
super(Connection, self).close()
256256

257257
@ensure_connect
258-
def _open_url(self, path, data, retries=None, **kwargs):
258+
def _open_url(self, path, data=None, retries=None, **kwargs):
259259
url_kwargs = dict(
260260
timeout=self.get_option("persistent_command_timeout"),
261261
validate_certs=self.get_option("validate_certs"),
@@ -304,7 +304,7 @@ def send(self, path, data, retries=None, **kwargs):
304304
"""
305305
Sends the command to the device over api
306306
"""
307-
response = self._open_url(path, data, **kwargs)
307+
response = self._open_url(path, data, retries, **kwargs)
308308

309309
response_buffer = BytesIO()
310310
resp_data = response.read()

0 commit comments

Comments
 (0)