Skip to content

Commit

Permalink
remote cmd return codes compatible with local
Browse files Browse the repository at this point in the history
  • Loading branch information
3ll3d00d committed Sep 10, 2022
1 parent c7d5b8e commit 6ce4bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commandcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"]

0 comments on commit 6ce4bd7

Please # to comment.