%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/win_wusa.pyo

�
���^c@@s�dZddlmZmZddlZddlZddlZddlm	Z	ej
e�ZdZ
d�Zd�Zd�ZdS(	u�
Microsoft Updates (KB) Management

This module provides the ability to enforce KB installations from files (.msu),
without WSUS or Windows Update

.. versionadded:: 2018.3.4
i(tabsolute_importtunicode_literalsN(tSaltInvocationErroruwusacC@s tjjj�stdfStS(u
    Load only on Windows
    u!Only available on Windows systems(tsalttutilstplatformt
is_windowstFalset__virtualname__(((s8/usr/lib/python2.7/site-packages/salt/states/win_wusa.pyt__virtual__s
cC@ssi|d6id6td6dd6}|s7td��n|sLtd��ntd|�r}t|d<d	j|�|d<|Std
tkr�d|d<dj|�|d<d|d<|Stdd
|dt�}|sdjtj	j
j|�t�}||d<|Std|�td|�r\dj|�|d<itd6td6|d<t|d<ndj|�|d<|S(uR
    Ensure an update is installed on the minion

    Args:

        name(str):
            Name of the Windows KB ("KB123456")

        source (str):
            Source of .msu file corresponding to the KB

    Example:

    .. code-block:: yaml

        KB123456:
          wusa.installed:
            - source: salt://kb123456.msu
    unameuchangesuresultuucommentuMust specify a KB "name"u'Must specify a "source" file to installuwusa.is_installedu{0} already installedutestu{0} would be installedu
cp.cache_filetpathtsaltenvu&Unable to cache {0} from saltenv "{1}"uwusa.installu{0} was installeduoldunewu{0} failed to installN(RRt__salt__tTruetformatt__opts__tNonet__env__RRturltredact_http_basic_auth(tnametsourcetrettcached_source_pathtmsg((s8/usr/lib/python2.7/site-packages/salt/states/win_wusa.pyt	installed%s<






cC@s�i|d6id6td6dd6}td|�sSt|d<dj|�|d<|Stdtkr�d|d<d	j|�|d<d|d<|Std
|�td|�s�dj|�|d<itd6td
6|d<t|d<ndj|�|d<|S(u�
    Ensure an update is uninstalled from the minion

    Args:

        name(str):
            Name of the Windows KB ("KB123456")

    Example:

    .. code-block:: yaml

        KB123456:
          wusa.uninstalled
    unameuchangesuresultuucommentuwusa.is_installedu{0} already uninstalledutestu{0} would be uninstalleduwusa.uninstallu{0} was uninstalleduoldunewu{0} failed to uninstallN(RRR
RRR(RR((s8/usr/lib/python2.7/site-packages/salt/states/win_wusa.pytuninstalledgs(





(t__doc__t
__future__RRtloggingtsalt.utils.platformRtsalt.utils.urltsalt.exceptionsRt	getLoggert__name__tlogRR	RR(((s8/usr/lib/python2.7/site-packages/salt/states/win_wusa.pyt<module>	s	
	B

Zerion Mini Shell 1.0