File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/github.cpython-310.pyc
o
�N�gMk � @ s� d Z ddlZddlZddlZddlmZ e�e�Zdd� Z ddd�Z
dd d
�Z
ddd�Zdd� Z
ddd�Z
ddd�Zddd�ZdS )aJ
Github User State Module
.. versionadded:: 2016.3.0
This state is used to ensure presence of users in the Organization.
.. code-block:: yaml
ensure user test is present in github:
github.present:
- name: 'Example TestUser1'
- email: example@domain.com
- username: 'gitexample'
� N)�CommandExecutionErrorc C s dt v rdS dS )zA
Only load if the github module is available in __salt__
zgithub.list_users�github)Fz!github module could not be loaded)�__salt__� r r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/github.py�__virtual__ s r r c K s, | i ddd�}t d | fd|i|��}|s"d|d<