| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.9/site-packages/sos/upload/targets/__pycache__/ |
Upload File : |
a
ܓ�i0 � @ s4 d dl Z d dlmZ d dlmZ G dd� de�ZdS )� N)�UploadTarget)�UbuntuPolicyc s` e Zd ZdZdZdZdZdZdZd� fdd� Z d d
� Z
d� fdd� Zd
d� Z� fdd�Z
� ZS )�UbuntuUploadTargetzUbuntu Upload TargetZ canonicalz,https://files.support.canonical.com/uploads/ZubuntuZputNc s t � j|||d� d S )N)�parser�args�cmdline)�super�__init__)�selfr r r �� __class__� �=/usr/lib/python3.9/site-packages/sos/upload/targets/ubuntu.pyr s zUbuntuUploadTarget.__init__c C s t | jd t�S )z1 Return true if we are running in a Ubuntu systemZpolicy)�
isinstanceZcommonsr �r
r
r
r �check_distribution s z%UbuntuUploadTarget.check_distributionc s$ | j �| j�r| j| jfS t� �� S �N)�
upload_url�
startswith�_upload_url�_upload_user�_upload_passwordr �get_upload_https_auth)r
�user�passwordr r
r r s z(UbuntuUploadTarget.get_upload_https_authc C s | j �| j�rdS | �| �� �S )NzCanonical Support File Server)r r r Z_get_obfuscated_upload_url�get_upload_urlr r
r
r �get_upload_url_string"