code: def name_match(self, match, full=False):
          '''
          Accept a glob which to match the of a key and return the key's location
          '''
          if full:
              matches = self.all_keys()
          else:
              matches = self.list_keys()
          ret = {}
          if ',' in match and isinstance(match, six.string_types):
              match = match.split(',')
          for status, keys in six.iteritems(matches):
              for key in salt.utils.data.sorted_ignorecase(keys):
                  if isinstance(match, list):
                      for match_item in match:
                          if fnmatch.fnmatch(key, match_item):
                              if status not in ret:
                                  ret[status] = []
                              ret[status].append(key)
                  else:
                      if fnmatch.fnmatch(key, match):
                          if status not in ret:
                              ret[status] = []
                          ret[status].append(key)
          return ref name_match(self, match, full=False):
          '''
          Accept a glob which to match the of a key and return the key's location
          '''
          if full:
              matches = self.all_keys()
          else:
              matches = self.list_keys()
          ret = {}
          if ',' in match and isinstance(match, six.string_types):
              match = match.split(',')
          for status, keys in six.iteritems(matches):
              for key in salt.utils.data.sorted_ignorecase(keys):
                  if isinstance(match, list):
                      for match_item in match:
                          if fnmatch.fnmatch(key, match_item):
                              if status not in ret:
                                  ret[status] = []
                              ret[status].append(key)
                  else:
                      if fnmatch.fnmatch(key, match):
                          if status not in ret:
                              ret[status] = []
                          ret[status].append(key)
          return ret
docs: Accept a glob which to match the of a key and return the key's location