From 5470415bfcbb04b94fa17e794d121400708f7705 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Thu, 1 Sep 2016 23:25:14 -0700 Subject: [PATCH] Fix mn -v by using output() rather than info() info() doesn't produce any output if it's called at this point; bug was introduced when we tried to eliminate print(). --- bin/mn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mn b/bin/mn index b31b22e..d41aae9 100755 --- a/bin/mn +++ b/bin/mn @@ -22,7 +22,7 @@ if 'PYTHONPATH' in os.environ: from mininet.clean import cleanup from mininet.cli import CLI as CLI -from mininet.log import lg, LEVELS, info, debug, warn, error +from mininet.log import lg, LEVELS, info, debug, warn, error, output from mininet.net import Mininet, MininetWithControlNet, VERSION from mininet.node import ( Host, CPULimitedHost, Controller, OVSController, Ryu, NOX, RemoteController, findController, @@ -149,7 +149,7 @@ def addDictOption( opts, choicesDict, default, name, **kwargs ): def version( *_args ): "Print Mininet version and exit" - info( "%s\n" % VERSION ) + output( "%s\n" % VERSION ) exit()