From 06f7408cf2a7a72b34e58149e22d440999227e8c Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 23 May 2012 20:04:36 -0700 Subject: [PATCH] Fix popen to allow popen( cmd, arg1, arg2, arg3 ) --- mininet/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/node.py b/mininet/node.py index d210e42..6db75c6 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -301,7 +301,7 @@ class Node( object ): raise Exception( 'popen() requires a string or list' ) elif len( args ) > 0: # popen( cmd, arg1, arg2... ) - cmd = args + cmd = list( args ) # Attach to our namespace using mnexec -a mncmd = defaults[ 'mncmd' ] del defaults[ 'mncmd' ]