print() -> error()

This commit is contained in:
Bob Lantz
2017-03-13 16:31:17 -07:00
parent 494840c908
commit 35a33fc617
+1 -1
View File
@@ -588,7 +588,7 @@ def ensureRoot():
Probably we should only sudo when needed as per Big Switch's patch. Probably we should only sudo when needed as per Big Switch's patch.
""" """
if os.getuid() != 0: if os.getuid() != 0:
print( "*** Mininet must run as root." ) error( '*** Mininet must run as root.\n' )
exit( 1 ) exit( 1 )
return return