#NEWLINE# def _generate_worker_info( self ) : #NEWLINE# #INDENT# args = [ ( 'salt' , ( '%09d' % random . randrange ( 0 , 999999999 ) ) ) , ( 'workers' , self . worker_processes ) ] #NEWLINE# try : #NEWLINE# #INDENT# args += [ ( 'host' , socket . gethostname ( ) ) ] #NEWLINE# #UNINDENT# except BaseException : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# args += [ ( 'username' , getpass . getuser ( ) ) ] #NEWLINE# #UNINDENT# except BaseException : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# args += [ ( 'pid' , os . getpid ( ) ) ] #NEWLINE# #UNINDENT# except BaseException : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# sudo_user = os . getenv ( 'SUDO_USER' ) #NEWLINE# if sudo_user : #NEWLINE# #INDENT# args . append ( ( 'sudo_user' , sudo_user ) ) #NEWLINE# #UNINDENT# #UNINDENT# except BaseException : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return args