summaryrefslogtreecommitdiffstats
path: root/src/linux/ogOperations.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/ogOperations.py')
-rw-r--r--src/linux/ogOperations.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py
index e58256f..e41bb86 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -162,11 +162,11 @@ def image_create(path, request, ogRest):
return output.decode('utf-8')
def refresh(ogRest):
- listConfigs = []
- disk = -1;
-
try:
- ogRest.proc = subprocess.Popen([OG_PATH + 'interfaceAdm/getConfiguration'], stdout=subprocess.PIPE, shell=True)
+ cmd = OG_PATH + 'interfaceAdm/getConfiguration'
+ ogRest.proc = subprocess.Popen([cmd],
+ stdout=subprocess.PIPE,
+ shell=True)
(output, error) = ogRest.proc.communicate()
except:
raise ValueError('Error: Incorrect command value')