From 6ce4bd7c0c4dcc4b30d48381a6068596daa6e6a3 Mon Sep 17 00:00:00 2001 From: 3ll3d00d Date: Sat, 10 Sep 2022 09:22:39 +0100 Subject: [PATCH] remote cmd return codes compatible with local --- src/commandcontroller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commandcontroller.py b/src/commandcontroller.py index 29e2966..50630e2 100644 --- a/src/commandcontroller.py +++ b/src/commandcontroller.py @@ -66,6 +66,6 @@ def __getitem__(self, item): def run(self, **kwargs): r = requests.put(self.__address) if r.status_code == 200: - return [r.status_code, ''] + return [0, ''] else: - return [r.status_code, r.text] + return [2, f"{r.status_code} - {r.text}"]