HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/eselect.cpython-310.pyc
o

�N�g��@s"dZddiZdd�Zddd�ZdS)z�
Management of Gentoo configuration using eselect
================================================

A state module to manage Gentoo configuration via eselect

�set_�setcCsdtvrdSdS)zB
    Only load if the eselect module is available in __salt__
    zeselect.exec_actionZeselect)Fz"eselect module could not be loaded)�__salt__�rr�G/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/eselect.py�__virtual__
srNcCs�id|dd�}td|||d�}||krd�||�|d<|S|td||d	�vr6d
�||�|d<d|d<|Std
rKd|�d|�d�|d<d|d<|Std||||d�}|rm||d�|d|<d|�d|�d�|d<|Sd�||�|d<d|d<|S)a�
    Verify that the given module is set to the given target

    name
        The name of the module

    target
        The target to be set for this module

    module_parameter
        additional params passed to the defined module

    action_parameter
        additional params passed to the defined action

    .. code-block:: yaml

        profile:
          eselect.set:
            - target: hardened/linux/amd64
    �T)�changes�comment�name�resultzeselect.get_current_target)�module_parameter�action_parameterz*Target '{}' is already set on '{}' module.r	zeselect.get_target_list)r
z-Target '{}' is not available for '{}' module.Fr�testzTarget 'z' will be set on 'z	' module.Nzeselect.set_target)�old�newrz
' set on 'z,Target '{}' failed to be set on '{}' module.)r�formatZ__opts__)r
�targetrr
�retZ
old_targetrrrrrsH����������)NN)�__doc__Z__func_alias__rrrrrr�<module>s