File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/cli/__pycache__/daemons.cpython-310.pyc
Back
o ;jS � @ s| d Z ddlZddlZddlZddlm mZ ddlmZm Z m Z ddlmZ ddl mZ ddlmZ ejdded d d� ejdd ed d� ejdded d� zddlZddlmZ ddlmZmZmZ W n ey Z zejd dkru� W Y dZ[ndZ[ww e�e �Z!G dd� d�Z"G dd� dejj#j$e"�Z%G dd� dejj#j&e"�Z'G dd� dejj#j(e"�Z)G dd� dejj#j*e"�Z+dS )z Make me some salt! � N)�SaltClientError�SaltSystemExit�get_error_message)� migrations)�is_junos)� HAS_PSUTIL�once� z^(salt|salt\.(.*))$T)�append�ignorez>With-statements now directly support multiple context managerszV^Module backports was already imported from (.*), but (.*) is being added to sys.path$)� ip_bracket)� check_user� verify_env� verify_socketzNo module named _msgpackc @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) �DaemonsMixinz1 Uses the same functions for all daemons c C s2 | j d �� dv rt�d| j d | jj� dS dS )zq Verify and display a nag-messsage to the log if vulnerable hash-type is used. :return: Z hash_type)�md5�sha1z_IMPORTANT: Do not use %s hashing algorithm! Please set "hash_type" to sha256 in Salt %s config!N)�config�lower�log�warning� __class__�__name__��self� r �D/opt/saltstack/salt/lib/python3.10/site-packages/salt/cli/daemons.py�verify_hash_type= s ��zDaemonsMixin.verify_hash_typec C s t �d|| jj� dS )zN Say daemon starting. :param action :return: z%s the Salt %sN�r �infor r )r �actionr r r �action_log_infoK s zDaemonsMixin.action_log_infoc C � t �d| jj� dS )z8 Say daemon starting. :return: zThe Salt %s is starting upNr r r r r �start_log_infoT � zDaemonsMixin.start_log_infoc C r"