Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/tuned/profiles/functions/__pycache__/ |
Upload File : |
a ,�g� � @ sT d dl Z d dlZddlmZ d dlmZ d dlmZ ej � � ZG dd� dej�Z dS )� N� )�base)�commands)�InvalidProfileExceptionc s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )� assertionz� Assertion: compares argument 2 with argument 3. If they don't match it logs text from argument 1 and throws InvalidProfileException. This exception will abort profile loading. c s t t| ��ddd� d S )Nr � )�superr �__init__)�self�� __class__� �O/usr/lib/python3.9/site-packages/tuned/profiles/functions/function_assertion.pyr s zassertion.__init__c sX t t| ��|�sd S |d |d krTt�d|d |d |d f � td|d ��d S )Nr � z#assertion '%s' failed: '%s' != '%s'r zAssertion '%s' failed.)r r �execute�log�errorr )r �argsr r r r s zassertion.execute)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r r r r s r )�osZ tuned.logsZtuned� r Ztuned.utils.commandsr Ztuned.profiles.exceptionsr Zlogs�getr ZFunctionr r r r r �<module> s