Fixed whoami output problem in cluster.py

Remove the last character when use `whoami`
This commit is contained in:
Roan Huang
2015-06-25 05:37:20 +00:00
parent 5f68be2273
commit d5d66f1276
+1 -1
View File
@@ -103,7 +103,7 @@ def findUser():
# Logged-in user (if we have a tty)
( quietRun( 'who am i' ).split() or [ False ] )[ 0 ] or
# Give up and return effective user
quietRun( 'whoami' ) )
quietRun( 'whoami' ).strip() )
class ClusterCleanup( object ):