FIx arguments
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user