File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/augeas_cfg.cpython-310.pyc
Back
o ;j]7 � @ s� d Z ddlZddlZddlZddlZddlZddlZddlm Z dZ z ddlmZ dZ W n ey5 Y nw e�e�ZdZdd d d ddddd �Zdd� Zdd� Zdd� Zdd� Zd%dd�Zd&dd�Zdd� Zd&dd�Zd'd d�Zd'd!d"�Zd'd#d$�ZdS )(a3 Manages configuration files via augeas This module requires the ``augeas`` Python module. .. _Augeas: http://augeas.net/ .. warning:: Minimal installations of Debian and Ubuntu have been seen to have packaging bugs with python-augeas, causing the augeas module to fail to import. If the minion has the augeas module installed, but the functions in this execution module fail to run due to being unavailable, first restart the salt-minion service. If the problem persists past that, the following command can be run from the master to determine what is causing the import to fail: .. code-block:: bash salt minion-id cmd.run 'python -c "from augeas import Augeas"' For affected Debian/Ubuntu hosts, installing ``libpython2.7`` has been known to resolve the issue. � N)�SaltInvocationErrorF)�AugeasT�augeas�set�setm�move�insert�remove)r r �mvr Zinsr Zrmr c C s t rtS dS )zG Only run this module if the augeas python module is installed )FzACannot load augeas_cfg module: augeas python module not installed)� HAS_AUGEAS�__virtualname__� r r �K/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/augeas_cfg.py�__virtual__>