#NEWLINE# def parallel_password_failure_message( self , with_sudo_prompt = True ) : #NEWLINE# #INDENT# with open ( os . path . join ( LOCAL_RESOURCES_DIR , 'parallel_password_failure.txt' ) ) as f : #NEWLINE# #INDENT# parallel_password_failure = f . read ( ) #NEWLINE# #UNINDENT# if with_sudo_prompt : #NEWLINE# #INDENT# parallel_password_failure += '[%(slave3)s] out: sudo password:\n[%(slave3)s] out: Sorry, try again.\n[%(slave2)s] out: sudo password:\n[%(slave2)s] out: Sorry, try again.\n[%(slave1)s] out: sudo password:\n[%(slave1)s] out: Sorry, try again.\n[%(master)s] out: sudo password:\n[%(master)s] out: Sorry, try again.\n' #NEWLINE# #UNINDENT# parallel_password_failure = ( parallel_password_failure % { #NEWLINE# #INDENT# 'master' : self . cluster . internal_master , #NEWLINE# 'slave1' : self . cluster . internal_slaves [ 0 ] , #NEWLINE# 'slave2' : self . cluster . internal_slaves [ 1 ] , #NEWLINE# 'slave3' : self . cluster . internal_slaves [ 2 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# return parallel_password_failure