Skip to content
Snippets Groups Projects
Commit ff4f4a4e authored by Porter Libby's avatar Porter Libby
Browse files

update with module path

parent 48432189
No related merge requests found
......@@ -8,6 +8,7 @@ def get_packages():
'package_list': [],
'python_version': platform.python_version(),
'python_location': sys.executable,
'python_module': sys.argv[-1],
'host_machine': socket.gethostname()
}
for m in pkg_resources.working_set:
......
......@@ -19,7 +19,7 @@ fi
DATA="[";
while read -r line ; do
module load $line &> /dev/null;
NEWOBJ=$(python /opt/pylist_snmp/pylist.py);
NEWOBJ=$(python /opt/pylist_snmp/pylist.py "$line");
DATA+=$NEWOBJ;
DATA+=",";
module unload $line &> /dev/null;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment