File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import sys
44import shlex
55import tempfile
66import re
7+
8+ if not os .path .exists ("tools/parse" ):
9+ print ("Running from incorrect directory" )
10+ exit (1 )
11+
712if 'EPNSYNCMODE' in os .environ and int (os .environ ['EPNSYNCMODE' ]):
813 sys .path .insert (0 , '/usr/share/Modules/init' )
914 import python as mod
@@ -131,7 +136,8 @@ for line in f:
131136 odccommand = os .environ ['GEN_TOPO_ODC_EPN_TOPO_CMD' ]
132137 else :
133138 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' ]
135141 if reconodes :
136142 replacestring = ""
137143 dd_env_variables = ['DD_DISK_FRACTION' ]
You can’t perform that action at this time.
0 commit comments