| Server IP : 167.99.254.82 / Your IP : 216.73.216.188 Web Server : Apache System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sos/upload/targets/__pycache__/ |
Upload File : |
o
G%@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 Target� canonicalz,https://files.support.canonical.com/uploads/�ubuntu�putNc s t � j|||d� d S )N)�parser�args�cmdline)�super�__init__)�selfr r r
�� __class__� �;/usr/lib/python3/dist-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 system�policy)�
isinstance�commonsr �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�r dS | �| �� �S )NzCanonical Support File Server)r r r �_get_obfuscated_upload_url�get_upload_urlr r r r �get_upload_url_string"