File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/aix_group.cpython-310.pyc
Back
o ;jE � @ s� d Z ddlZzddlZW n ey Y nw e�e�ZdZdd� Zddd�Z d d � Z dd� Zdd d�Zdd� Z ddd�Zddd�Zddd�ZdS )a Manage groups on Solaris .. important:: If you feel that Salt should be using this module to manage groups on a minion, and it is using a different module (or gives an error similar to *'group.info' is not available*), see :ref:`here <module-provider-override>`. � N�groupc C s t d dkrtS dS )z3 Set the group module if the kernel is AIX ZkernelZAIX)FzMThe aix_group execution module failed to load: only available on AIX systems.)Z __grains__�__virtualname__� r r �J/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/aix_group.py�__virtual__ s r Fc K sN d}|r|dur|d7 }|r|d|� d�7 }|| 7 }t d |dd�}|d S ) zr Add the specified group CLI Example: .. code-block:: bash salt '*' group.add foo 3456 zmkgroup Nz-a zid=� �cmd.run_allF�Zpython_shell�retcode��__salt__)�name�gid�system�root�kwargs�cmd�retr r r �add$ s r c C s t d d| � �dd�}|d S )zo Remove the named group CLI Example: .. code-block:: bash salt '*' group.delete foo r zrmgroup Fr r r )r r r r r �delete<