summaryrefslogtreecommitdiffstats
path: root/src/linux/ogOperations.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-02-05 12:44:58 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-02-05 13:42:20 +0100
commiteaba1acbc37df6685cd991815e94bfcee46f3fa9 (patch)
tree1b10c635d995d8ccb0c11d3a63eec9cc0b74567a /src/linux/ogOperations.py
parentfe4236dcd805b46618dc2c5e7325d732ac5fd530 (diff)
Fix /session execution
The script now reads arguments correctly.
Diffstat (limited to 'src/linux/ogOperations.py')
-rw-r--r--src/linux/ogOperations.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py
index 076aa3d..605bde9 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -62,9 +62,12 @@ def execCMD(request, ogRest):
def session(request, ogRest):
disk = request.getDisk()
partition = request.getPartition()
+ cmd = f'{OG_PATH}interfaceAdm/IniciarSesion {disk} {partition}'
try:
- ogRest.proc = subprocess.Popen([OG_PATH + 'interfaceAdm/IniciarSesion', disk, partition], stdout=subprocess.PIPE, shell=True)
+ ogRest.proc = subprocess.Popen([cmd],
+ stdout=subprocess.PIPE,
+ shell=True)
(output, error) = ogRest.proc.communicate()
except:
raise ValueError('Error: Incorrect command value')