Fix link command parsing bug

This commit is contained in:
Brandon Heller
2010-03-13 21:32:11 -08:00
parent af380c8912
commit 28cd95c374
+1
View File
@@ -149,6 +149,7 @@ class CLI( Cmd ):
def do_link( self, args ):
"Bring a link up or down."
args = args.split()
if len(args) != 3:
error( 'invalid number of args: link [up down] end1 end2\n' )
elif args[ 0 ] not in [ 'up', 'down' ]: