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) : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g � @ sJ d dl mZmZ d dlZd dlmZ d dlmZmZ G dd� dee�Z dS )� )� NoOptionError�NoSectionErrorN)�remove)�Plugin�RedHatPluginc @ sD e Zd ZdZdZdZdZdZdZd d � Z dd� Z d d� Zdd� ZdS )�SubscriptionManagerz subscription-manager informationZsubscription_manager�system�packagemanager�sysmgmt�/etc/rhsm/rhsm.conf�subscription-managerZ rhsm_curl_cfgc C s� d}|j dd�}|rL|j dd�}|j dd�}|r8d| }d|� d|� |� �}|j dd �}|r�|r�|j dd �}|r�| jj| j�| _t| jddd ��}|jd|� d|� �� W dQ R X |d| j� �7 }n|d|� �7 }|S )z4 return curl options --proxy[-user] per RHSM config � �server�proxy_hostname�proxy_scheme� proxy_port�:z--proxy z://� proxy_userZproxy_password�wzutf-8)�encodingz --proxy-user Nz --config z --proxy-user )�get�archiveZ dest_path�curl_config�_curl_cfg_fname�open�write) �self�config�proxyr r r r Z proxy_passZ_f� r �*/usr/lib/python3.6/subscription_manager.py�get_proxy_string s&