OwlCyberSecurity - MANAGER
Edit File: hosting_smart_advice_api.cpython-311.pyc
� wo4hp � �T � d dl Z d dlZd dlmZmZ ej e� � ZdZdZ d� Z dS )� N)� CheckRunError� check_runzcl-hosting-smart-advice�imunifyc � �4 K � t j | � � } t t ddt d|g� � � d {V ��}t j |� � }|� dd� � S # t $ r&}t � d|� � Y d }~dS d }~ww xY w)N�syncz--appz--json�successFz9Failed to sync advices with `cl-hosting-smart-advice`: %s) �json�dumpsr � EXECUTABLE�APP_NAME�loads�getr �logger�warning)�advices�payload�out�result�es �n/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/myimunify/advice/hosting_smart_advice_api.py�sync_advicesr s� � � � ��j��!�!�G�,�� ���(�H�g�F� � � � � � � � �� ��C�����z�z�)�U�+�+�+�� � � � ����G�� � � � �u�u�u�u�u����� ���s �%A'