관리-도구
편집 파일: run_manager.cpython-311.pyc
� 9�1g � �l � d Z ddlZddlmZmZ ddlmZ ddlmZ ddl m Z dd lmZ dd l mZ dd�Zd � ZdS )z< This module contains SSA manager utility main run function � N� )�cmd_parser_manager�parse_cmd_arguments)�validate� )�configure_logging)�manager_log)�initialize_manager)�SSAError�returnc �$ � t t � � t t � � � � } t | j � � \ }}n:# t $ r-}t |� � t j d� � Y d}~nd}~ww xY wt |fi |�� dS )z Main run function r N)r r r r r �__dict__r �print�sys�exit�manager_run)�args�cmd�validated_args�es �P/opt/cloudlinux/venv/lib64/python3.11/site-packages/ssa/ssa_utils/run_manager.py�runr s� � � �k�"�"�"��"�#5�#7�#7�8�8��&�t�}�5�5���^�^��� � � � �a����������������������� ��&�&�~�&�&�&�&�&s �2A � B �#A;�;B c �X � t � � }| dk r|� |� � }n�| dk r|� � � }n�| dk r|� � � }n~| dk r|� � � }nc| dk r|� � � }nH| dk r|� � � }n-| dk r|� � � }nt d| � �� � �t |� � d S # t $ r.}t |� � t j d � � Y d }~d S d }~ww xY w)z" SSA Manager run function z set-configz get-configzget-ssa-statusz enable-ssazdisable-ssaz get-reportzget-statzUnknown action r N)r � set_config� get_config�get_ssa_status� enable_ssa�disable_ssa� get_report� get_statsr r r r )�commandr �kwargs�manager_instance�resultr s r r r "