#NEWLINE# def _connection_defaults( user = None , host = None , port = None , maintenance_db = None , password = None ) : #NEWLINE# #INDENT# '\n    Returns a tuple of (user, host, port, db) with config, pillar, or default\n    values assigned to missing values.\n    ' #NEWLINE# if ( not password ) : #NEWLINE# #INDENT# user = __salt__ [ 'config.option' ] ( 'postgres.user' ) #NEWLINE# #UNINDENT# if ( not host ) : #NEWLINE# #INDENT# host = __salt__ [ 'config.option' ] ( 'postgres.host' ) #NEWLINE# #UNINDENT# if ( not port ) : #NEWLINE# #INDENT# port = __salt__ [ 'config.option' ] ( 'postgres.port' ) #NEWLINE# #UNINDENT# if ( not maintenance_db ) : #NEWLINE# #INDENT# maintenance_db = __salt__ [ 'config.option' ] ( 'postgres.maintenance_db' ) #NEWLINE# #UNINDENT# if ( password is None ) : #NEWLINE# #INDENT# password = __salt__ [ 'config.option' ] ( 'postgres.pass' ) #NEWLINE# #UNINDENT# return ( user , host , port , maintenance_db , password )