def grain_pcre(tgt, delimiter=DEFAULT_TARGET_DELIM):
 matcher = salt.minion.Matcher({'grains': __grains__}, __salt__)
 try:
  return matcher.grain_pcre_match(tgt, delimiter=delimiter)
 except Exception as exc:
  log.exception(exc)
  return False

def grain_pcre ( tgt , delimiter = DEFAULT_TARGET_DELIM ) : matcher = salt . minion . Matcher ( { 'grains' : __grains__ } , __salt__ ) try : return matcher . grain_pcre_match ( tgt , delimiter = delimiter ) except Exception as exc : log . exception ( exc ) return False
return true if the minion matches the given grain_pcre target .