관리-도구
편집 파일: wmt-api.cpython-311.opt-1.pyc
� tfq � �" � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl m Z m Z d dlmZm Z mZmZ d dlmZmZ d dlmZ d dlmZ d dlmZmZ d d lmZ d d lmZ d dlmZm Z dd �Z!d� Z"d� Z#d� Z$d� Z%d� Z&d� Z'e(dk r e'� � dS dS )� N)�ArgumentParser)�datetime� timedelta)�WMT_SCANNER_SERVICE� WMT_LOCK_FILE�CONFIG_PATH�WMT_DB)�generate_report�report_dict)�setup_database)�set_service_state)�Notifier�SupportedNotificationTypes)�cfg)�CloudlinuxLicenseLib)�send_report_to_clickhouse�manage_crons�successc �� � | t j � � d�}|� |� � t t j |dd�� � � � t j |� � d S )N)�result� timestamp� T)�indent� sort_keys)�time�update�print�json�dumps�sys�exit)r � exit_code�extra�messages ��/builddir/build/BUILDROOT/cl-web-monitoring-tool-3.1.3-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/wmt/wmt-api.py�print_result_and_exitr&