FIx arguments

This commit is contained in:
2022-05-09 22:58:53 +01:00
parent df49de30e0
commit e75f150949

View File

@@ -49,7 +49,7 @@ def safe():
# Reboot router
app.logger.info('Rebooting router')
status = reboot(url, path, username, password).text
status = reboot(username, password, username, password).text
if '{"status":true}' not in status:
app.logger.error('Reboot failed')
@@ -61,7 +61,7 @@ def safe():
@app.route('/force', methods=['POST'])
def force():
app.logger.info('Initializing force reboot process')
status = reboot(url, path, username, password).text
status = reboot(username, password, url, path).text
if '{"status":true}' not in status:
app.logger.error('Reboot failed')