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__/powerpath.cpython-310.pyc
o

�N�g@	�@sdZdd�Zdd�ZdS)z�
Powerpath configuration support
===============================

Allows configuration of EMC Powerpath.  Currently
only addition/deletion of licenses is supported.

.. code-block:: yaml

    key:
      powerpath.license_present: []
cCs�|iddd�}td�sd|d<d|d<|Sdd	�td
�D�}||vr2d|d<d|�d
�|d<|StdrDd|d<d|�d�|d<|Std|�}|dr`|di|d<d|d<|d|d<|Sd|d<|d|d<|S)z�
    Ensures that the specified PowerPath license key is present
    on the host.

    name
        The license key to ensure is present
    F���name�changes�result�comment�powerpath.has_powerpathr�PowerPath is not installed.rcS�g|]}|d�qS��key���.0�lrr�I/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/powerpath.py�
<listcomp>�z#license_present.<locals>.<listcomp>�powerpath.list_licensesT�License key z already present�testNz is set to be addedzpowerpath.add_licenseZaddedr�output�Z__salt__Z__opts__�r�retZlicenses�datarrr�license_present�.
rcCs�|iddd�}td�sd|d<d|d<|Sdd	�td
�D�}||vr2d|d<d|�d
�|d<|StdrDd|d<d|�d�|d<|Std|�}|dr`|di|d<d|d<|d|d<|Sd|d<|d|d<|S)z�
    Ensures that the specified PowerPath license key is absent
    on the host.

    name
        The license key to ensure is absent
    FrrrrrrcSr	r
rr
rrrrErz"license_absent.<locals>.<listcomp>rTrz not presentrNz is set to be removedzpowerpath.remove_licenseZremovedrrrrrrr�license_absent6rrN)�__doc__rrrrrr�<module>s'