Merge pull request #528 from pichuang/cluster

Fixed `whoami` output problem in cluster.py
This commit is contained in:
lantz
2015-06-25 13:36:21 -07:00
+1 -1
View File
@@ -103,7 +103,7 @@ def findUser():
# Logged-in user (if we have a tty) # Logged-in user (if we have a tty)
( quietRun( 'who am i' ).split() or [ False ] )[ 0 ] or ( quietRun( 'who am i' ).split() or [ False ] )[ 0 ] or
# Give up and return effective user # Give up and return effective user
quietRun( 'whoami' ) ) quietRun( 'whoami' ).strip() )
class ClusterCleanup( object ): class ClusterCleanup( object ):