#NEWLINE# def create_ssh_tunnel( beaver_config , logger = None ) : #NEWLINE# #INDENT# 'Returns a BeaverSshTunnel object if the current config requires us to' #NEWLINE# if ( not beaver_config . use_ssh_tunnel ( ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# logger . info ( 'Proxying transport using through local ssh tunnel' ) #NEWLINE# return BeaverSshTunnel ( beaver_config , logger = logger )