/usr/lib/python2.6/site-packages/novaclient/v2/contrib
Edit: /usr/lib/python2.6/site-packages/novaclient/v2/contrib/host_evacuate.pyc (2335B)
Ņō
=vVc @ sŪ d d k l Z d d k l Z d d k l Z d d k l Z d e i f d YZ d Z e i
d d d
d d e i
d
d d d d d e d e i
d d d d d d e d e d d Z
d S( i˙˙˙˙( t base( t _( t cliutils( t utilst EvacuateHostResponsec B s e Z RS( ( t __name__t
__module__( ( ( sN /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/host_evacuate.pyR s c
C s t } d } y- | i i d | d d | i d | i Wn+ t j
o } t } t d | } n Xt t i
h | d d 6| d 6| d 6 S(
Nt t servert uuidt hostt on_shared_storages# Error while evacuating instance: %st server_uuidt evacuate_acceptedt
error_message( t Truet serverst evacuatet target_hostR t Exceptiont FalseR R R t Manager( t csR t argst successR t e( ( sN /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/host_evacuate.pyt _server_evacuate s R
t metavars
t helps
Name of host.s
--target_hosts
t defaultsP Name of target host. If no host is specified the scheduler will select a target.s --on-shared-storaget destR t actiont
store_trues; Specifies whether all instances files are on shared storagec C s | i i | i d t } g } xO | D]G } t | d o1 x. | i D] } | i t | | | qH Wq( q( Wt i | d d d g d S( s( Evacuate all instances from failed host.R s Server UUIDs Evacuate Accepteds
Error MessageN(
t hypervisorst searchR
R t hasattrR t appendR R t
print_list( R R R! t responset hyperR ( ( sN /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/host_evacuate.pyt do_host_evacuate) s
% N( t
novaclientR t novaclient.i18nR t novaclient.openstack.commonR R t ResourceR R t argt NoneR R( ( ( ( sN /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/contrib/host_evacuate.pyt s"