%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/glance_image.pyo

�
���^c@@sMdZddlmZmZmZdZd�Zdd�Zdd�Z	dS(u�
Management of OpenStack Glance Images
========================================

.. versionadded:: 2018.3.0

:depends: shade
:configuration: see :py:mod:`salt.modules.glanceng` for setup instructions

Example States

.. code-block:: yaml

    create image:
      glance_image.present:
        - name: cirros
        - filename: cirros.raw
        - image_format: raw

    delete image:
      glance_image.absent:
        - name: cirros
i(tabsolute_importtunicode_literalstprint_functionuglance_imagecC@sdtkrtStdfS(Nuglanceng.image_getuRThe glanceng execution module failed to load: shade python module is not available(t__salt__t__virtualname__tFalse(((s</usr/lib/python2.7/site-packages/salt/states/glance_image.pyt__virtual__scK@s�i|d6id6td6dd6}td|�}td|�tdd	|�}|s�td
r�d|d<||d<dj|�|d<|S||d<td|�}||d<d
|d<|S|S(u�
    Ensure image exists and is up-to-date

    name
        Name of the image

    enabled
        Boolean to control if image is enabled

    description
        An arbitrary description of the image
    unameuchangesuresultuucommentuargs.clean_kwargsuglanceng.setup_cloudsuglanceng.image_gettnameutestuImage {} will be created.uglanceng.image_createu
Created imageN(tTruet	__utils__Rt__opts__tNonetformat(Rtauthtkwargstrettimage((s</usr/lib/python2.7/site-packages/salt/states/glance_image.pytpresent%s&







cC@s�i|d6id6td6dd6}td|�tdd|�}|r�td	r�d|d<i|d6|d<d
j|�|d<|Stdd|�|j|dd<d
|d<n|S(uI
    Ensure image does not exist

    name
        Name of the image
    unameuchangesuresultuucommentuglanceng.setup_cloudsuglanceng.image_getRutestuImage {} will be deleted.uglanceng.image_deleteuidu
Deleted imageN(RRR
RRtid(RR
RR((s</usr/lib/python2.7/site-packages/salt/states/glance_image.pytabsentNs 




N(
t__doc__t
__future__RRRRRRRR(((s</usr/lib/python2.7/site-packages/salt/states/glance_image.pyt<module>s
	)

Zerion Mini Shell 1.0