File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/pw_group.cpython-310.pyc
Back
o ;j8 � @ s� d Z ddlZddlZddlZzddlZW n ey Y nw e�e�Z dZ dd� Zddd�Zdd � Z d d� Zdd d�Zdd� Zdd� Zdd� Zdd� ZdS )a Manage groups on FreeBSD .. 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 dv rtS dS )zC Set the user module if the kernel is FreeBSD or Dragonfly Zkernel)ZFreeBSDZ DragonFly)FzHThe pw_group execution module cannot be loaded: system is not supported.)Z __grains__�__virtualname__� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/pw_group.py�__virtual__ s r c K s� t jjjdi |��}t jj�|�dd��rt�d� d|v r#t�d� |r*t�d� d}|r6|d|� d �7 }|� d | � �}t d |dd�}|d S )z� .. versionchanged:: 3006.0 Add the specified group name Name of the new group gid Use GID for the new group CLI Example: .. code-block:: bash salt '*' group.add foo 3456 �systemFz6pw_group module does not support the 'system' argumentZ non_uniquez;The non_unique parameter is not supported on this platform.z"Invalid kwargs passed to group.addzpw groupadd z-g � z -n �cmd.run_all�Zpython_shell�retcodeNr ) �salt�utils�argsZclean_kwargs�dataZis_true�pop�log�warning�__salt__)�name�gid�kwargs�cmd�retr r r �add'