%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/modules/qemu_img.pyc

�
���^c@@sYdZddlmZmZmZddlZddlZd�Zd�Z	d�Z
dS(u
Qemu-img Command Wrapper
========================

The qemu img command is wrapped for specific functions

:depends: qemu-img
i(tabsolute_importtprint_functiontunicode_literalsNcC@s#tjjjd�rdStdfS(u,
    Only load if qemu-img is installed
    uqemu-imguqemu_imguWThe qemu_img execution module cannot be loaded: the qemu-img binary is not in the path.(tsalttutilstpathtwhichtFalse(((s9/usr/lib/python2.7/site-packages/salt/modules/qemu_img.pyt__virtual__scC@setjj|�sdStjjtjj|��s8dStddj|||�dt�sa|SdS(u?
    Create a blank virtual machine image file of the specified size in
    megabytes. The image can be created in any format supported by qemu

    CLI Example:

    .. code-block:: bash

        salt '*' qemu_img.make_image /tmp/image.qcow 2048 qcow2
        salt '*' qemu_img.make_image /tmp/image.raw 10240 raw
    uucmd.retcodeuqemu-img create -f {0} {1} {2}Mtpython_shell(tosRtisabstisdirtdirnamet__salt__tformatR(tlocationtsizetfmt((s9/usr/lib/python2.7/site-packages/salt/modules/qemu_img.pyt
make_images		cC@sNddd|||f}td|dt�}|ddkrBtS|dSd	S(
u�
    Convert an existing disk image to another format using qemu-img

    CLI Example:

    .. code-block:: bash

        salt '*' qemu_img.convert /path/to/original.img /path/to/new.img qcow2
    uqemu-imguconvertu-Oucmd.run_allR	uretcodeiustderrN(RRtTrue(torigtdestRtcmdtret((s9/usr/lib/python2.7/site-packages/salt/modules/qemu_img.pytconvert6s

(t__doc__t
__future__RRRR
tsalt.utils.pathRRRR(((s9/usr/lib/python2.7/site-packages/salt/modules/qemu_img.pyt<module>	s			

Zerion Mini Shell 1.0