File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/vcenter.cpython-310.pyc
Back
o ;jo � @ sT d Z ddlZddlmZ ddlZe�e�ZdgZ dZ dd� Zdd� Zed d � �Z dS )a! Module used to access the vcenter 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 vCenter 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��wrapsZvcenterc C s t jj�� rtS dS )z Only work on proxy F)�salt�utils�platformZis_proxy�__virtualname__� r r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/vcenter.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 'vcenter' 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 )Nzvcenter.get_details)Z __proxy__r r r r �get_details9 s r )�__doc__�logging� functoolsr Zsalt.utils.platformr � getLogger�__name__�logZ__proxyenabled__r r r r r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings