File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ssh_known_hosts.cpython-310.pyc
Back
o ;j�! � @ sV d Z ddlZddlZddlmZ dZdd� Z d d d �Zddd�Z dS )a� Control of SSH known_hosts entries ================================== Manage the information stored in the known_hosts files. .. code-block:: yaml github.com: ssh_known_hosts: - present - user: root - fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 - fingerprint_hash_type: md5 example.com: ssh_known_hosts: - absent - user: root � N)�CommandNotFoundErrorZssh_known_hostsc C s t jj�� rdS tS )zA Does not work on Windows, requires ssh module functions )Fz)ssh_known_hosts: Does not support Windows)�salt�utils�platformZ is_windows�__virtualname__� r r �O/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/ssh_known_hosts.py�__virtual__ s r T� c C s� | i t d rdnddd�} |s|pd}n|pd}|s,tj�|�s,d}d | d <