%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/states/ |
Current File : //usr/lib/python2.7/site-packages/salt/states/win_wua.pyc |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l m Z d d l Z d d l Z d d l Z e j e � Z d Z d � Z d d � Z d d � Z e e e e e d d d � Z d S( u� Installation of Windows Updates using the Windows Update Agent .. versionadded:: 2017.7.0 Salt can manage Windows updates via the "wua" state module. Updates can be installed and removed. Update management declarations are as follows: For installation: .. code-block:: yaml # Install a single update using the KB KB3194343: wua.installed # Install a single update using the name parameter install_update: wua.installed: - name: KB3194343 # Install multiple updates using the updates parameter and a combination of # KB number and GUID install_updates: wua.installed: - updates: - KB3194343 - bb1dbb26-3fb6-45fd-bb05-e3c8e379195c For removal: .. code-block:: yaml # Remove a single update using the KB KB3194343: wua.removed # Remove a single update using the name parameter remove_update: wua.removed: - name: KB3194343 # Remove multiple updates using the updates parameter and a combination of # KB number and GUID remove_updates: wua.removed: - updates: - KB3194343 - bb1dbb26-3fb6-45fd-bb05-e3c8e379195c i ( t absolute_importt unicode_literalst print_functionN( t sixu wuac C@ s9 t j j j � s t d f St j j j s5 t d f St S( u( Only valid on Windows machines u% WUA: Only available on Window systemsu WUA: Requires PyWin32 libraries( t saltt utilst platformt is_windowst Falset win_updatet HAS_PYWIN32t __virtualname__( ( ( s7 /usr/lib/python2.7/site-packages/salt/states/win_wua.pyt __virtual__C s c C@ s& t | t j � r | g } n | s- | } n i | d 6i d 6t d 6d d 6} t j j j � } | j | � } | j � d k r� d | d <| St j j j � } x<