Fix bug on exec reboot command

pull/24/head
remittor 1 year ago
parent 8f4527c1b9
commit 4b73115a56

@ -288,7 +288,7 @@ class Gateway():
def reboot_device(self, wait_timeout = None):
try:
params = { 'client': 'web' }
res = requests.post(gw.apiurl + "xqsystem/reboot", params = params, timeout=self.timeout)
res = requests.post(self.apiurl + "xqsystem/reboot", params = params, timeout=self.timeout)
if res.text.find('"code":0') < 0:
return False
if wait_timeout:

Loading…
Cancel
Save