/usr/lib/python2.6/site-packages/openstackclient/compute/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/compute/v2/agent.pyc (5732B)
Ñò
;vVc @ sÆ d Z d d k Z d d k Z 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 e i f d
„ ƒ YZ d e i
f d „ ƒ YZ d
e i f d „ ƒ YZ d S( s Agent action implementationsiÿÿÿÿN( t command( t lister( t show( t utilst CreateAgentc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s Create compute agent commands .CreateAgentc C s¸ t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d d ƒ| i d d d
d d ƒ| i d d d
d d ƒ| i d d d d d ƒ| i d d d d d d d ƒ| S( Nt ost metavars
t helps
Type of OSt architectures s Type of architecturet versions t Versiont urls t URLt md5hashs s MD5 hasht
hypervisors s Type of hypervisort defaultt xen( t superR t
get_parsert add_argument( t selft prog_namet parser( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyR ! s6 c C s€ | i i d | ƒ | i i i } | i | i | i | i | i | i
f } | i i | Œ i
i ƒ } t t t i | ƒ ƒ Œ S( Ns take_action(%s)( t logt debugt appt client_managert computeR R R R R
R t agentst createt _infot copyt zipt sortedt sixt iteritems( R t parsed_argst compute_clientt argst agent( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyt take_action> s ( t __name__t
__module__t __doc__t loggingt getLoggerR R R( ( ( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyR s t DeleteAgentc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s Delete compute agent commands .DeleteAgentc C s5 t t | ƒ i | ƒ } | i d d d d d ƒ| S( Nt idR s R s ID of agent to delete( R R. R R ( R R R ( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyR R s c C s9 | i i d | ƒ | i i i } | i i | i ƒ d S( Ns take_action(%s)( R R R R R R t deleteR/ ( R R$ R% ( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyR( Z s ( R) R* R+ R, R- R R R( ( ( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyR. M s t ListAgentc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s List compute agent commands
.ListAgentc C s5 t t | ƒ i | ƒ } | i d d d d d ƒ| S( Ns --hypervisorR s R s Type of hypervisor( R R1 R R ( R R R ( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyR f s c sW | i i d | ƒ | i i i } d
‰ | i i | i ƒ } ˆ ‡ f d † | Dƒ f S( Ns take_action(%s)s Agent IDt
Hypervisort OSt ArchitectureR
t Md5HashR c 3 s% x | ] } t i | ˆ ƒ Vq Wd S( N( R t get_item_properties( t .0t s( t columns( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pys | s ( s Agent IDR2 s OSR4 s VersionR5 s URL( R R R R R R t listR ( R R$ R% t data( ( R9 sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyR( n s ( R) R* R+ R, R- R R R( ( ( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/v2/agent.pyR1 a s t SetAgentc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s Set compute agent commands .SetAgentc C s€ t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d d ƒ| i d d d
d d ƒ| i d d d
d d ƒ| S( NR/ R s R s ID of the agentR s s Version of the agentR s R R
s s MD5 hash( R R<