%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/states/ |
Current File : //usr/lib/python2.7/site-packages/salt/states/win_dism.pyc |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z e j e � Z d Z d � Z d e d e d � Z d e d � Z d d e e d e d � Z e d e d � Z e e d e d � Z d e d � Z d S( u Installing of Windows features using DISM ========================================= Install windows features/capabilties with DISM .. code-block:: yaml Language.Basic~~~en-US~0.0.1.0: dism.capability_installed NetFx3: dism.feature_installed i ( t absolute_importt unicode_literalst print_functionNu dismc C@ s t j j j � s t d f St S( uA Only work on Windows where the DISM module is available u Module only available on Windows( t saltt utilst platformt is_windowst Falset __virtualname__( ( ( s8 /usr/lib/python2.7/site-packages/salt/states/win_dism.pyt __virtual__ s c C@ s1 i | d 6t d 6d d 6i d 6} t d � } | | k rR d j | � | d <| St d r� d j | � | d d <d | d <| St d | | | | | � } | d d k r� d j | | d � | d <t | d <n t d � } t j j j | | � } | r-d j | � | d <| | d <| | d d <n | S( u5 Install a DISM capability Args: name (str): The capability to install source (str): The optional source of the capability limit_access (bool): Prevent DISM from contacting Windows Update for online images image (Optional[str]): The path to the root directory of an offline Windows image. If `None` is passed, the running operating system is targeted. Default is None. restart (Optional[bool]): Reboot the machine if required by the install Example: Run ``dism.available_capabilities`` to get a list of available capabilities. This will help you get the proper name to use. .. code-block:: yaml install_dotnet35: dism.capability_installed: - name: NetFX3~~~~ u nameu resultu u commentu changesu dism.installed_capabilitiesu'