Edit File: 003_whmapi1_set_importance_imav.cpython-311.pyc
� ���h� � �^ � d Z ddlZddlZddlmZ ej e� � Zg d�Zdd�Z dd�Z dS ) u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � N)�cPanel)�MalwareFound�ScanNotScheduled�GenericFc � � |rd S t j � � sd S t D ]_} t j dddd|z dg� � � # t $ r3}t � d|t |� � � � Y d }~�Xd }~ww xY wd S )N�whmapi1�(set_application_contact_event_importancezapp=Imunifyzevent=zimportance=Highz"Failed to set imporance for %s: %s) r �is_installed�events� subprocess�run� Exception�logger�warning�str)�migrator�database�fake�kwargs�ev�es �d/opt/imunify360/venv/lib/python3.11/site-packages/imav/migrations/003_whmapi1_set_importance_imav.py�migrater $ s� � �� ����� � � ���� M� M�� M��N��>�!��r�M�%�� � � � �� � M� M� M��N�N�?��S��V�V�L�L�L�L�L�L�L�L����� M����M� Ms �A� A>�)A9�9A>c � � d S )N� )r r r r s r �rollbackr 9 s � ��D� )F)�__doc__�loggingr �$defence360agent.subsys.panels.cpanelr � getLogger�__name__r r r r r r r �<module>r# s� ��� �* ���� � � � � 7� 7� 7� 7� 7� 7� �� �8� $� $�� � � ��M� M� M� M�* � � � � � r
Back to File Manager