From e953444fa50ded13beb0ece925108f76da0db025 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Sat, 13 Mar 2010 13:59:03 -0800 Subject: [PATCH] Corrected list checkin sendCmd. --- mininet/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mininet/node.py b/mininet/node.py index 8dd13f7..7cd5845 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -134,13 +134,13 @@ class Node( object ): """Send a command, followed by a command to echo a sentinel, and return without waiting for the command to complete.""" assert not self.waiting + if isinstance( cmd, list ): + cmd = ' '.join( cmd ) if cmd[ -1 ] == '&': separator = '&' cmd = cmd[ :-1 ] else: separator = ';' - if isinstance( cmd, list ): - cmd = ' '.join( cmd ) self.write( cmd + separator + ' echo -n "\\0177" \n' ) self.waiting = True