File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/peeringdb.cpython-310.pyc
Back
o ;jM! � @ s� d Z ddlZddlZddlmZ e�e�ZdZ dgZ dZdd� Zd#d d �Z d$dd�Zd$d d�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� ZdS )%a� PeeringDB Module ================ .. versionadded:: 2019.2.0 Execution module for the basic interaction with the `PeeringDB <https://www.peeringdb.com/>`_ API. While for GET operations (the functions prefixed by ``get_``) the credentials are optional, there are some specific details that are visible only to authenticated users. Moreover, the credentials are required when adding or updating information. That means, the module can equally work out of the box without any further configuration with the limitations imposed by the PeeringDB API. For complete API documentation, please refer to https://www.peeringdb.com/apidocs/. Configuration (in the opts or Pillar): .. code-block:: yaml peeringdb: username: salt password: 5@1t � N)�clean_kwargs� peeringdb�*zhttps://www.peeringdb.com/apic C s t S �N)�__virtualname__� r r �J/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/peeringdb.py�__virtual__+ s r c C s8 t d di d�}| s|�d| �} |s|�d|�}| |fS )Nzconfig.merger )�default�username�password)Z__salt__�get)r r Z peeringdb_cfgr r r � _get_auth/ s r c C s&