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/modules/__pycache__/esxvm.cpython-310.pyc
o

�N�g��@sTdZddlZddlmZddlZe�e�ZdgZ	dZ
dd�Zdd�Zed	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��wrapsZesxvmcCstjj��rtSdS)z
    Only work on proxy
    )FzMust be run on a proxy minion)�salt�utils�platformZis_proxy�__virtualname__�rr�F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/esxvm.py�__virtual__sr
cst���fdd��}|S)z>
    Decorator wrapper to warn about azurearm deprecation
    cs6tjjjddtd��|itjjjdi|����}|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)rrZversionsZ
warn_until�
FutureWarning�argsZclean_kwargs)r
�kwargs�ret��functionrr	�wrapped*s�z%_deprecation_message.<locals>.wrappedr)rrrrr	�_deprecation_message%srcCs
td�S)Nzesxvm.get_details)Z	__proxy__rrrr	�get_details:s
r)�__doc__�logging�	functoolsrZsalt.utils.platformr�	getLogger�__name__�logZ__proxyenabled__rr
rrrrrr	�<module>s