Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/upload/targets/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g0 � @ 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.6/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| j�r| j| jfS t� j� S )N)� upload_url� startswith�_upload_url�_upload_user�_upload_passwordr �get_upload_https_auth)r �userZpassword)r r r r s z(UbuntuUploadTarget.get_upload_https_authc C s | j j| j�rdS | j| j� �S )NzCanonical Support File Server)r r r Z_get_obfuscated_upload_url�get_upload_url)r r r r �get_upload_url_string"