From e75f150949bfa0b54372c151269dba13f67115ea Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Mon, 9 May 2022 22:58:53 +0100 Subject: [PATCH] FIx arguments --- src/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index 44d35bc..553f1e6 100644 --- a/src/app.py +++ b/src/app.py @@ -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')