Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
codedeploy
/
File Content:
uninstall.pyc
� =��Xc @ sd d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d e f d � � YZ d S( i����N( t validate_instancet validate_region( t BasicCommandt Uninstallc B s/ e Z d Z d Z d � Z d � Z d � Z RS( t uninstallsB Uninstalls the AWS CodeDeploy Agent from the on-premises instance.c C s� | } | j | _ t | | � t | � | j j � y | j | � | j | � Wn9 t k r� } t j j � t j j d j | � � n Xd S( Ns� ERROR {0} Uninstall the AWS CodeDeploy Agent on the on-premises instance by following the instructions in "Configure Existing On-Premises Instances by Using AWS CodeDeploy" in the AWS CodeDeploy User Guide. ( t _sessiont sessionR R t systemt validate_administratort _uninstall_agentt _delete_config_filet Exceptiont syst stdoutt flusht stderrt writet format( t selft parsed_argst parsed_globalst paramst e( ( sJ /tmp/pip-build-uEGWVr/awscli/awscli/customizations/codedeploy/uninstall.pyt _run_main s c C s4 t j j d � | j j | � t j j d � d S( Ns) Uninstalling the AWS CodeDeploy Agent... s DONE ( R R R R R ( R R ( ( sJ /tmp/pip-build-uEGWVr/awscli/awscli/customizations/codedeploy/uninstall.pyR 3 s c C sl t j j d � y t j | j j � Wn. t k rW } | j t j k rX | � qX n Xt j j d � d S( Ns3 Deleting the on-premises instance configuration... s DONE ( R R R t ost removeR t CONFIG_PATHt OSErrort errnot ENOENT( R R R ( ( sJ /tmp/pip-build-uEGWVr/awscli/awscli/customizations/codedeploy/uninstall.pyR 8 s ( t __name__t __module__t NAMEt DESCRIPTIONR R R ( ( ( sJ /tmp/pip-build-uEGWVr/awscli/awscli/customizations/codedeploy/uninstall.pyR s ( R R R t&