File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/__pycache__/dimensiondata.cpython-310.pyc
Back
o ;j�G � @ s^ d Z ddlZddlZddlZddlmZ ddlZddlT ddl m Z mZmZ ddl mZ ddlmZ zDddlZddlmZmZmZ ddlmZ dd lmZ dd lmZ ddlmZ dd lmZ eej �ed�k rsddl!Zej"j#�$d� d Z%W n e&y� dZ%Y nw z ddl'm(Z( d Z)W n e&y� dZ)Y nw ee*e+� �Z*ee,e+� �Z,ee-e+� �Z-ee.e+� �Z.ee/e+� �Z/ee0e+� �Z0ee1e+� �Z1ee2e+� �Z2ee3e+� �Z3ee4e+� �Z4ee5e+� �Z5ee6e+� �Z6ee7e+� �Z7e�8e9�Z:dZ;dd� Z<dd� Z=dd� Z>dd� Z?dd� Z@dd� ZAd/dd�ZBdd � ZCd!d"� ZDd#d$� ZEd0d%d&�ZFd0d'd(�ZGd)d*� ZHd0d+d,�ZId-d.� ZJdS )1a Dimension Data Cloud Module =========================== This is a cloud module for the Dimension Data Cloud, using the existing Libcloud driver for Dimension Data. .. code-block:: yaml # Note: This example is for /etc/salt/cloud.providers # or any file in the # /etc/salt/cloud.providers.d/ directory. my-dimensiondata-config: user_id: my_username key: myPassword! region: dd-na driver: dimensiondata :maintainer: Anthony Shaw <anthonyshaw@apache.org> :depends: libcloud >= 1.2.1 � N)�*)�SaltCloudExecutionFailure�SaltCloudExecutionTimeout�SaltCloudSystemExit)�namespaced_function)�Version)�NodeAuthPassword� NodeDriver� NodeState)� get_driver)�Provider)�Memberz1.4.0z/etc/ssl/certs/YaST-CA.pemTF)�all_matching_cidrs� dimensiondatac C s@ t � du rdS t� du rdS td �� D ] \} }d|vrqqtS )zS Set up the libcloud functions and check for dimensiondata configurations. FZ providersr )�get_configured_provider�get_dependencies�__opts__�items�__virtualname__)�provider�details� r �S/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/dimensiondata.py�__virtual___ s �r c C s"