From c6e7eaf07cde4d193c4233c4ec59eb8c450fa005 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Sat, 10 Apr 2010 21:29:34 -0700 Subject: [PATCH] Changed to not die immediately if we send in an empty command. There might still be some issues with this however... --- mininet/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/node.py b/mininet/node.py index c1615d3..cfe4d69 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -160,7 +160,7 @@ class Node( object ): assert not self.waiting if isinstance( cmd, list ): cmd = ' '.join( cmd ) - if cmd[ -1 ] == '&': + if len( cmd ) > 0 and cmd[ -1 ] == '&': separator = '&' cmd = cmd[ :-1 ] else: