|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/upload/targets/__pycache__/ |
Upload File : |
o
([Qh0 � @ 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"