summaryrefslogtreecommitdiffstats
path: root/src/linux/ogOperations.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-01-20 12:28:41 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-21 17:32:42 +0100
commit96c2ddea2d407845441cd740c8330f15fc75b7a0 (patch)
treef3ca8ab72d015cbebc5bf961c98dcf22b888465f /src/linux/ogOperations.py
parent434bb272b53858e9a9df80986f7617adc80a2f43 (diff)
Fix /hardware command Linux operation
This patch runs the script InventarioHardware with the right arguments.
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 385fd95..505894b 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -84,7 +84,10 @@ def software(request, path, ogRest):
def hardware(path, ogRest):
try:
- ogRest.proc = subprocess.Popen([OG_PATH + 'interfaceAdm/InventarioHardware', path], stdout=subprocess.PIPE, shell=True)
+ cmd = [OG_PATH + 'interfaceAdm/InventarioHardware ' + path]
+ ogRest.proc = subprocess.Popen(cmd,
+ stdout=subprocess.PIPE,
+ shell=True)
(output, error) = ogRest.proc.communicate()
except:
raise ValueError('Error: Incorrect command value')