summaryrefslogtreecommitdiffstats
path: root/src/HTTPParser.py
diff options
context:
space:
mode:
authorAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-18 13:57:48 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commit8e54420dfd58f2c2178888b1deff0f791d670db2 (patch)
treebe57ee14f9a56a1bea535601dd75878647e71974 /src/HTTPParser.py
parent51ad896deea2d2297a55d89bcae69c1fe369c895 (diff)
(Clean-Up) Rename cmd function/variables to use "run" syntax
Diffstat (limited to 'src/HTTPParser.py')
-rw-r--r--src/HTTPParser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HTTPParser.py b/src/HTTPParser.py
index e0de594..29cbb42 100644
--- a/src/HTTPParser.py
+++ b/src/HTTPParser.py
@@ -20,7 +20,7 @@ class HTTPParser:
self.contentLen = None
self.operation = None
self.URI = None
- self.cmd = None
+ self.run = None
self.partition = None
self.disk = None
self.cache = None
@@ -61,7 +61,7 @@ class HTTPParser:
return
if "run" in cmd:
- self.cmd = json_param["run"]
+ self.run = json_param["run"]
try:
self.echo = json_param["echo"]
except:
@@ -125,8 +125,8 @@ class HTTPParser:
def getURI(self):
return self.URI
- def getCMD(self):
- return self.cmd
+ def getrun(self):
+ return self.run
def getDisk(self):
return self.disk