def _connection_defaults(user=None, host=None, port=None, maintenance_db=None, password=None):
 if (not user):
  user = __salt__['config.option']('postgres.user')
 if (not host):
  host = __salt__['config.option']('postgres.host')
 if (not port):
  port = __salt__['config.option']('postgres.port')
 if (not maintenance_db):
  maintenance_db = __salt__['config.option']('postgres.maintenance_db')
 if (password is None):
  password = __salt__['config.option']('postgres.pass')
 return (user, host, port, maintenance_db, password)

def _connection_defaults ( user = None , host = None , port = None , maintenance_db = None , password = None ) : if ( not user ) : user = __salt__ [ 'config.option' ] ( 'postgres.user' ) if ( not host ) : host = __salt__ [ 'config.option' ] ( 'postgres.host' ) if ( not port ) : port = __salt__ [ 'config.option' ] ( 'postgres.port' ) if ( not maintenance_db ) : maintenance_db = __salt__ [ 'config.option' ] ( 'postgres.maintenance_db' ) if ( password is None ) : password = __salt__ [ 'config.option' ] ( 'postgres.pass' ) return ( user , host , port , maintenance_db , password )
returns a tuple of with config .