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

def glob ( tgt , minion_id = None ) : if ( minion_id is not None ) : if ( not isinstance ( minion_id , string_types ) ) : minion_id = str ( minion_id ) else : minion_id = __grains__ [ 'id' ] matcher = salt . minion . Matcher ( { 'id' : minion_id } , __salt__ ) try : return matcher . glob_match ( tgt ) except Exception as exc : log . exception ( exc ) return False
iterates all filesystem paths that get matched by the glob pattern .