def compound(tgt, minion_id=None):
 opts = {'grains': __grains__}
 if (minion_id is not None):
  if (not isinstance(minion_id, string_types)):
   minion_id = str(minion_id)
 else:
  minion_id = __grains__['id']
 opts['id'] = minion_id
 matcher = salt.minion.Matcher(opts, __salt__)
 try:
  return matcher.compound_match(tgt)
 except Exception as exc:
  log.exception(exc)
  return False

def compound ( tgt , minion_id = None ) : opts = { 'grains' : __grains__ } if ( minion_id is not None ) : if ( not isinstance ( minion_id , string_types ) ) : minion_id = str ( minion_id ) else : minion_id = __grains__ [ 'id' ] opts [ 'id' ] = minion_id matcher = salt . minion . Matcher ( opts , __salt__ ) try : return matcher . compound_match ( tgt ) except Exception as exc : log . exception ( exc ) return False
return true if the minion id matches the given compound target minion_id specify the minion id to match against the target expression .