We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7c3ef6 commit 49302feCopy full SHA for 49302fe
1 file changed
DATA/tools/parse
@@ -4,6 +4,11 @@ import sys
4
import shlex
5
import tempfile
6
import re
7
+
8
+if not os.path.exists("tools/parse"):
9
+ print("Running from incorrect directory")
10
+ exit(1)
11
12
if 'EPNSYNCMODE' in os.environ and int(os.environ['EPNSYNCMODE']):
13
sys.path.insert(0, '/usr/share/Modules/init')
14
import python as mod
@@ -131,7 +136,8 @@ for line in f:
131
136
odccommand = os.environ['GEN_TOPO_ODC_EPN_TOPO_CMD']
132
137
else:
133
138
odccommand = 'odc-epn-topo'
134
- odccommand += ' ' + os.environ['GEN_TOPO_ODC_EPN_TOPO_ARGS']
139
+ if 'GEN_TOPO_ODC_EPN_TOPO_ARGS' in os.environ:
140
+ odccommand += ' ' + os.environ['GEN_TOPO_ODC_EPN_TOPO_ARGS']
135
141
if reconodes:
142
replacestring = ""
143
dd_env_variables = ['DD_DISK_FRACTION']
0 commit comments