%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/states/ssh_known_hosts.pyc |
�
���^c
@@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d d l m Z d Z
d � Z d d d d d d e
d d d � Z d d d � Z d S(
u�
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
i ( t absolute_importt unicode_literalst print_functionN( t CommandNotFoundErroru ssh_known_hostsc C@ s t j j j � r t d f St S( uA
Does not work on Windows, requires ssh module functions
u) ssh_known_hosts: Does not support Windows( t saltt utilst platformt
is_windowst Falset __virtualname__( ( ( s? /usr/lib/python2.7/site-packages/salt/states/ssh_known_hosts.pyt __virtual__# s
i c
C@ s' i | d 6i d 6t d r! d+ n t d 6d d 6}
| sG | pA d } n | pP d } | r� t j j | � r� d } t |
d <t |
d
| �St d r�| r� | r� d } t |
d <t |
d
| �S| r� | r� d } t |
d <t |
d
| �Sy5 t d
| | d | d | d | d | d | �} Wn1 t k
rX}
t |
d <d j
|
� |
d <|
SX| d k r�d j
| | � } t |
d <t |
d
| �S| d k r�d j
| | � } t |
d
| �Sd j
| | � } t |
d
| �Sn t d d | d | d | d | d | d | d | d | d | d | �
} | d d k rYt |
d
d j
| | � �S| d d! k r�t |
d"