File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/lxd_container.cpython-310.pyc
Back
o ;jX � @ s� d Z ddlmZmZ dZdZdZdZdZdd � Z d dd�Z d!dd�Z d!dd�Zd"dd�Z d!dd�Z d#dd�Zdd� Zdd� Zdd� Zd S )$u� Manage LXD containers. .. versionadded:: 2019.2.0 .. note: - :ref:`pylxd` version 2 is required to let this work, currently only available via pip. To install on Ubuntu: $ apt-get install libssl-dev python-pip $ pip install -U pylxd - you need lxd installed on the minion for the init() and version() methods. - for the config_get() and config_get() methods you need to have lxd-client installed. .. _pylxd: https://github.com/lxc/pylxd/blob/master/doc/source/installation.rst :maintainer: René Jochum <rene@jochums.at> :maturity: new :depends: python-pylxd :platform: Linux � )�CommandExecutionError�SaltInvocationErrorzrestructuredtext enZ lxd_container�g �n �f c C s dt v rtS dS )z> Only load if the lxd module is available in __salt__ zlxd.version)Fzlxd module could not be loaded)�__salt__�__virtualname__� r r �M/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/lxd_container.py�__virtual__* s r N�x86_64FTc C s� |du rdg}|du r i }| ||||||||| | ||i d�} d}zt d | | | ||dd�}W n* tyG } z t| t|��W Y d}~S d}~w tyX } zW Y d}~nd}~ww |du r�td r�d| � d �}d |i| d<