print() -> error()
This commit is contained in:
+1
-1
@@ -588,7 +588,7 @@ def ensureRoot():
|
||||
Probably we should only sudo when needed as per Big Switch's patch.
|
||||
"""
|
||||
if os.getuid() != 0:
|
||||
print( "*** Mininet must run as root." )
|
||||
error( '*** Mininet must run as root.\n' )
|
||||
exit( 1 )
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user