def _config(name, key=None, **kwargs):
 if (key is None):
  key = name
 if (name in kwargs):
  value = kwargs[name]
 else:
  value = __salt__['config.option']('ldap.{0}'.format(key))
 return value

def _config ( name , key = None , ** kwargs ) : if ( key is None ) : key = name if ( name in kwargs ) : value = kwargs [ name ] else : value = __salt__ [ 'config.option' ] ( 'ldap.{0}' . format ( key ) ) return value
return a value for name from master config file options or defaults .