diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-03-09 17:24:42 +0100 |
---|---|---|
committer | Alvaro Neira Ayuso <aneira@soleta.eu> | 2020-03-09 18:10:54 +0100 |
commit | 5964e48df99af29ee6c655777b88ef4402d92f5d (patch) | |
tree | cd7722352a0bdbfa29197876b15406e590806099 /src/ogRest.py | |
parent | a6d3b7915c56b89fc2bdaca159f81870d3546e95 (diff) |
rename execcmd to shellrun
Diffstat (limited to 'src/ogRest.py')
-rw-r--r-- | src/ogRest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index b80b9e7..aa3b6e4 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -71,7 +71,7 @@ class restResponse(): return self.msg class ogThread(): - def execcmd(client, request, ogRest): + def shellrun(client, request, ogRest): if not request.getrun(): response = restResponse(ogResponses.BAD_REQUEST) client.send(response.get()) @@ -341,7 +341,7 @@ class ogRest(): client.send(response.get()) def process_shellrun(self, client, request): - threading.Thread(target=ogThread.execcmd, args=(client, request, self,)).start() + threading.Thread(target=ogThread.shellrun, args=(client, request, self,)).start() def process_session(self, client, request): threading.Thread(target=ogThread.session, args=(client, request, self,)).start() |