File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/esxvm.cpython-310.pyc
o
�N�g� � @ sT d Z ddlZddlmZ ddlZe�e�ZdgZ dZ
dd� Zdd� Zed d
� �Z
dS )a
Module used to access the esx proxy connection methods
.. Warning::
This module will be deprecated in a future release of Salt. VMware strongly
recommends using the
`VMware Salt extensions <https://docs.saltproject.io/salt/extensions/salt-ext-modules-vmware/en/latest/all.html>`_
instead of the ESX VSM module. Because the Salt extensions are newer and
actively supported by VMware, they are more compatible with current versions
of ESXi and they work well with the latest features in the VMware product
line.
� N��wrapsZesxvmc C s t jj�� rtS dS )z
Only work on proxy
)FzMust be run on a proxy minion)�salt�utils�platformZis_proxy�__virtualname__� r r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/esxvm.py�__virtual__ s r
c s t � �� fdd��}|S )z>
Decorator wrapper to warn about azurearm deprecation
c s6 t jjjddtd� � | i t jjjdi |����}|S )NZArgonz�The 'esxvm' functionality in Salt has been deprecated and its functionality will be removed in version 3008 in favor of the saltext.vmware Salt Extension. (https://github.com/saltstack/salt-ext-modules-vmware))�categoryr )r r ZversionsZ
warn_until�
FutureWarning�argsZclean_kwargs)r
�kwargs�ret��functionr r �wrapped* s �z%_deprecation_message.<locals>.wrappedr )r r r r r �_deprecation_message% s r c C s
t d � S )Nzesxvm.get_details)Z __proxy__r r r r �get_details: s
r )�__doc__�logging� functoolsr Zsalt.utils.platformr � getLogger�__name__�logZ__proxyenabled__r r
r r r r r r �<module> s