code: def image_list(id=None, profile=None, name=None):  # pylint: disable=C0103
      '''
      Return a list of available images (glance image-list)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' glance.image_list
      '''
      g_client = _auth(profile)
      ret = []
      for image in g_client.images.list():
          if id is None and name is None:
              _add_image(ret, image)
          else:
              if id is not None and id == image.id:
                  _add_image(ret, image)
                  return ret
              if name == image.name:
                  if name in ret and CUR_VER < BORON:
                      # Not really worth an exception
                      return {
                          'result': False,
                          'comment':
                              'More than one image with '
                              'name "{0}"'.format(name)
                          }
                  _add_image(ret, image)
      log.debug('Returning images: %s', ret)
      return ref image_list(id=None, profile=None, name=None):  # pylint: disable=C0103
      '''
      Return a list of available images (glance image-list)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' glance.image_list
      '''
      g_client = _auth(profile)
      ret = []
      for image in g_client.images.list():
          if id is None and name is None:
              _add_image(ret, image)
          else:
              if id is not None and id == image.id:
                  _add_image(ret, image)
                  return ret
              if name == image.name:
                  if name in ret and CUR_VER < BORON:
                      # Not really worth an exception
                      return {
                          'result': False,
                          'comment':
                              'More than one image with '
                              'name "{0}"'.format(name)
                          }
                  _add_image(ret, image)
      log.debug('Returning images: %s', ret)
      return ret
docs: Return a list of available images (glance image-list)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' glance.image_list