Skip to content
Snippets Groups Projects
Commit 4f4f1dd2 authored by Brandon Heller's avatar Brandon Heller
Browse files

Fix KeyError for missing NOX env var

parent 8ff7ee42
No related branches found
No related tags found
No related merge requests found
......@@ -461,9 +461,11 @@ def __init__( self, name, inNamespace=False, noxArgs=None, **kwargs ):
noxArgs = [ noxArgs ]
if not noxArgs:
noxArgs = [ 'packetdump' ]
if 'NOX_CORE_DIR' not in os.environ:
exit( 'exiting; please set missing NOX_CORE_DIR env var' )
noxCoreDir = os.environ[ 'NOX_CORE_DIR' ]
if not noxCoreDir:
raise Exception( 'please set NOX_CORE_DIR env var\n' )
Controller.__init__( self, name,
controller=noxCoreDir + '/nox_core',
cargs='--libdir=/usr/local/lib -v -i ptcp: ' +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment