summaryrefslogtreecommitdiffstats
path: root/src/linux/ogOperations.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-01-21 12:06:12 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-21 17:32:57 +0100
commitca0a62f9c69e13e0c74b099de85f52a9daf0df54 (patch)
treef07dbf484c090305dc5759863b249a9aa1c0a3c3 /src/linux/ogOperations.py
parentd401c9ff468b3df106b2693611661c3870d5b89d (diff)
Fix /software command Linux operation
This patch runs the script InventarioSoftware with the right arguments. This also increases the recv buffer size for the test server.
Diffstat (limited to 'src/linux/ogOperations.py')
-rw-r--r--src/linux/ogOperations.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py
index 357dd2f..e58256f 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -75,7 +75,13 @@ def software(request, path, ogRest):
partition = request.getPartition()
try:
- ogRest.proc = subprocess.Popen([OG_PATH + 'interfaceAdm/InventarioSoftware', disk, partition, path], stdout=subprocess.PIPE, shell=True)
+ cmd = OG_PATH + 'interfaceAdm/InventarioSoftware '
+ cmd += str(disk) + ' '
+ cmd += str(partition) + ' '
+ cmd += path
+ ogRest.proc = subprocess.Popen([cmd],
+ stdout=subprocess.PIPE,
+ shell=True)
(output, error) = ogRest.proc.communicate()
except:
raise ValueError('Error: Incorrect command value')