File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/lxd_profile.cpython-310.pyc
Back
o ;jC � @ sb d Z ddlmZmZ dZdZdd� Z dd d �Zddd�Zd d� Z dd� Z dd� ZdS )uz Manage LXD profiles. .. versionadded:: 2019.2.0 .. note: - `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 enZlxd_profilec 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 �K/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/lxd_profile.py�__virtual__% s r NTc C s2 | |||||||i d� }d} zt d | ||||dd�} W n* ty5 } z t|t| ��W Y d} ~ S d} ~ w tyF } zW Y d} ~ nd} ~ ww |du rMd}| du r�td rfd| � d �}d |i|d<