#NEWLINE# def grain_pcre( tgt , delimiter = DEFAULT_TARGET_DELIM ) : #NEWLINE# #INDENT# "\n    Return True if the minion matches the given grain_pcre target. The\n    ``delimiter`` argument can be used to specify a different delimiter.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' match.grain_pcre 'os:Fedo.*'\n        salt '*' match.grain_pcre 'ipv6|2001:.*' delimiter='|'\n\n    delimiter\n        Specify an alternate delimiter to use when traversing a nested dict\n\n        .. versionadded:: 2014.7.0\n\n    delim\n        Specify an alternate delimiter to use when traversing a nested dict\n\n        .. versionadded:: 0.16.4\n        .. deprecated:: 2015.8.0\n    " #NEWLINE# matcher = salt . minion . Matcher ( { #NEWLINE# #INDENT# 'grains' : __grains__ , #NEWLINE# #UNINDENT# } , __salt__ ) #NEWLINE# try : #NEWLINE# #INDENT# return matcher . grain_pcre_match ( tgt , delimiter = delimiter ) #NEWLINE# #UNINDENT# except Exception as exc : #NEWLINE# #INDENT# log . exception ( exc ) #NEWLINE# return False