golden hour
/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/openstack/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-310.pyc
207 B
Del
OK
neutron.cpython-310.pyc
25.58 KB
Del
OK
nova.cpython-310.pyc
28.33 KB
Del
OK
swift.cpython-310.pyc
6.61 KB
Del
OK
Edit: nova.cpython-310.pyc
o �xeb� � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddl m Z dZz(ddlZddl ZddlZddlZddlZddlZddlmZ ddlmZ dZW n eyU Y nw dZzddlZddlZdZW n eym Y nw e�e�Zd Zd Zddd dddddddd� Zdd� Z e � r�zddl ZW n ey� e�!d� Y nw G dd� d�Z" d)dd�Z#G dd� d�Z$d*dd �Z%d*d!d"�Z&d#d$� Z'd%d&� Z(G d'd(� d(�Z)dS )+z Nova class � N)�SaltCloudSystemExit)�VersionF)�client)�OpenStackComputeShellTz2.6.1z6.0.1�uuid�source_type�destination_typeZdisk_busZdevice_name�volume_size�guest_format� boot_indexZdevice_type�delete_on_termination) �id�source�destZbus�device�size�formatZ bootindex�type�shutdownc C s^ t r-ttj�} tt�}tt�}|| kr|krt S | |kr't�dt� dS t�dt� dS )Nz.Older novaclient version required. Maximum: %sFz/Newer novaclient version required. Minimum: %s)�HAS_NOVAr � novaclient�__version__�NOVACLIENT_MINVER�NOVACLIENT_MAXVER�log�debug)Znovaclient_verZmin_verZmax_ver� r �M/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/openstack/nova.py� check_nova@ s ��r zgUsing novaclient version 7.0.0 or newer. Authentication plugin auth_plugin.py is not available anymore.c @ s e Zd Zdd� ZdS )�KwargsStructc K s | j �|� d S �N)�__dict__�update)�self�entriesr r r �__init__\ s zKwargsStruct.__init__N)�__name__� __module__�__qualname__r% r r r r r [ s r c C s< g }| d u rg } |d u rg }|d ur|ddddd�}|� |� |d ur0|ddddd�}|� |� | D ]2}i }|�� D ] \}} | |t| <