File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/chocolatey.cpython-310.pyc
Back
o ;j� � @ s� d Z ddlZddlZddlZddlZddlmZ ddlZddl Zddl mZmZm Z mZ ddlmZ ddlmZ e�e�ZddiZdZd d � Zdd� Zd d� Zdd� Zdd� Zdd� Zd?dd�Zdd� Z d@dd�Zdd� Zdd� Z dAdd �Z!dBd!d"�Z"dCd#d$�Z#dDd%d&�Z$dCd'd(�Z%d)d*� Z&dBd+d,�Z' dEd-d.�Z( dFd/d0�Z)dBd1d2�Z*dGd3d4�Z+dHd5d6�Z,d7d8� Z-d9d:� Z.d;d<� Z/d=d>� Z0dS )Izq A module that wraps calls to the Chocolatey package manager (http://chocolatey.org) .. versionadded:: 2014.1.0 � N)�CaseInsensitiveDict)�CommandExecutionError�CommandNotFoundError�MinionError�SaltInvocationError)�Version�list_�list� chocolateyc C s$ t jj�� sdS td dv rdS tS )aU Confirm this module is on a Windows system running Vista or later. While it is possible to make Chocolatey run under XP and Server 2003 with an awful lot of hassle (e.g. SSL is completely broken), the PowerShell shim for simulating UAC forces a GUI prompt, and is not compatible with salt-minion running as SYSTEM. )FzChocolatey: Requires Windows� osrelease)�XP� 2003Server)Fz+Chocolatey: Requires Windows Vista or later)�salt�utils�platformZ is_windows� __grains__�__virtualname__� r r �K/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/chocolatey.py�__virtual__! s r c C s&