관리-도구
편집 파일: run_manager.cpython-37.pyc
B � d � @ sr d Z ddlZddlmZmZ ddlmZ ddlmZ ddl m Z dd lmZ dd l mZ dd�dd �Zdd� 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 C sj t t� ytt� �} t| j�\}}W n4 tk rX } zt|� t� d� W dd}~X Y nX t |f|� dS )z Main run function r N)r r r r r �__dict__r �print�sys�exit�manager_run)�args�cmdZvalidated_args�e� r �J/opt/alt/python37/lib/python3.7/site-packages/ssa/cli_utils/run_manager.py�run s r c O s� y�t � }| dkr|�|�}nz| dkr.|�� }nh| dkr@|�� }nV| dkrR|�� }nD| dkrd|�� }n2| dkrv|�� }n | dkr�|�� }ntd| � ���t |� W n4 tk r� } zt |� t �d � W d d }~X Y nX d S )z" SSA Manager run function z set-configz get-configzget-ssa-statusz enable-ssazdisable-ssaz get-reportzget-statzUnknown action r N)r Z set_configZ get_configZget_ssa_statusZ enable_ssaZdisable_ssaZ get_reportZ get_statsr r r r )Zcommandr �kwargsZmanager_instance�resultr r r r r "