%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/proxy/ |
Current File : //lib/python2.7/site-packages/salt/proxy/ssh_sample.pyo |
� ���^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 d l m Z d g Z i Z e j e � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( u This is a simple proxy-minion designed to connect to and communicate with a server that exposes functionality via SSH. This can be used as an option when the device does not provide an api over HTTP and doesn't have the python stack to run a minion. i ( t absolute_importt print_functiont unicode_literalsN( t SSHConnection( t TerminalExceptionu ssh_samplec C@ s t j d � t S( u6 Only return if all the modules are available u( ssh_sample proxy __virtual__() called...( t logt infot True( ( ( s9 /usr/lib/python2.7/site-packages/salt/proxy/ssh_sample.pyt __virtual__ s c C@ s� y^ t d t d d d t d d d t d d � t d <t d j d � \ } } t t d <Wn! t k r� } t j | � t SXd S( uH Required. Can be used to initialize the server connection. t hostu proxyu hostt usernameu usernamet passwordu passwordu serveru helpu initializedN( R t __opts__t DETAILSt sendlineR R R t errort False( t optst outt errt e( ( s9 /usr/lib/python2.7/site-packages/salt/proxy/ssh_sample.pyt init&