Файловый менеджер - Редактировать - /usr/lib/python3/dist-packages/sos/upload/__pycache__/__init__.cpython-310.pyc
Ðазад
o G%@i�3 � @ s` d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dlm Z G dd� de�ZdS )� N)�SoSComponent)�_sos)�__version__c s e Zd ZdZdZi dd�dd�dd�dd �d d �dd �dd �d d�dd�dd�dd�dd �dd �dd �dd �dd �dd �Z d3� fdd� Zedd� �Zedd� �Z dd � Z d!d"� Zd#d$� Zd%d&� Z d'd(� Zed)d*� �Zed+d,� �Zed-d.� �Zd/d0� Zd1d2� Z� ZS )4� SoSUploadz� This class is designed to upload files to a distribution defined location. These files can be either sos reports, sos collections, or other kind of files like: vmcores, application cores, logs, etc. z9Upload a file to a user or policy defined remote location�upload_file� �case_id�low_priorityF� upload_urlN�upload_directory�upload_user�upload_pass� upload_method�auto�upload_no_ssl_verify�upload_protocol�upload_s3_endpointzhttps://s3.amazonaws.com�upload_s3_region�upload_s3_bucket�upload_s3_access_key�upload_s3_secret_key�upload_s3_object_prefix� upload_targetc s~ |st � �|||� d| _n'|d | _|d | _|d | _|| _|| _|| _|| _ t �d�| _d| _|| _ | �� | _d | _d S )NT�options�policy�manifest�sos_uiF)�super�__init__�from_cmdline�optsr r �parser�cmdline�args�_upload_file�logging� getLogger�ui_log�archive�load_upload_targets�upload_targetsr )�selfr! r# r"