Merge pull request #528 from pichuang/cluster
Fixed `whoami` output problem in cluster.py
This commit is contained in:
+1
-1
@@ -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 ):
|
||||
|
||||
Reference in New Issue
Block a user