code: def _item_list(profile=None):
      '''
      Template for writing list functions
      Return a list of available items (glance items-list)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' glance.item_list
      '''
      g_client = _auth(profile)
      ret = []
      for item in g_client.items.list():
          ret.append(item.__dict__)
          #ret[item.name] = {
          #        'name': item.name,
          #    }
      return ref _item_list(profile=None):
      '''
      Template for writing list functions
      Return a list of available items (glance items-list)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' glance.item_list
      '''
      g_client = _auth(profile)
      ret = []
      for item in g_client.items.list():
          ret.append(item.__dict__)
          #ret[item.name] = {
          #        'name': item.name,
          #    }
      return ret
docs: Template for writing list functions
      Return a list of available items (glance items-list)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' glance.item_list