/usr/lib/python2.6/site-packages/openstackclient/common
Edit: /usr/lib/python2.6/site-packages/openstackclient/common/limits.pyc (3482B)
Ñò
;vVc @ sk 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 e i
f d „ ƒ YZ d S( s Limits Action ImplementationiÿÿÿÿN( t lister( t utils( t commont
ShowLimitsc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Show compute and volume limitss .ShowLimitsc
C sÏ t t | ƒ i | ƒ } | i d t ƒ } | i d d d d d d t d d ƒ| i d
d d d d d t d d ƒ| i d
d d d d d t d d ƒ| i d d d d d ƒ| i d d d d d ƒ| S( Nt requireds
--absolutet destt is_absolutet actiont
store_truet defaultt helps Show absolute limitss --ratet is_rates Show rate limitss
--reservedt is_reserveds7 Include reservations count [only valid with --absolute]s --projectt metavars
sL Show limits for a specific project (name or ID) [only valid with --absolute]s --domains sE Domain that owns --project (name or ID) [only valid with --absolute]( t superR t
get_parsert add_mutually_exclusive_groupt Truet add_argumentt False( t selft prog_namet parsert
type_group( ( sM /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/common/limits.pyR s: c s‘ | i i i } | i i i } d } | i d j o{ | i i i } | i d j o= t i | | i ƒ } t
i | i | i d | i
ƒi
} q¯ t
i | i | i ƒ i
} n | i i | i d | ƒ} | i i ƒ } | i oE | i } | i } d d g ‰ ˆ ‡ f d † t i | | ƒ Dƒ f S| i oQ | i } | i } d d d d d d
g ‰ ˆ ‡ f d † t i | | ƒ Dƒ f Sh h f Sd S( Nt domain_idt tenant_idt Namet Valuec 3 s% x | ] } t i | ˆ ƒ Vq Wd S( N( R t get_item_properties( t .0t s( t columns( sM /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/common/limits.pys ^ s t Verbt URIt Remaint Units Next Availablec 3 s% x | ] } t i | ˆ ƒ Vq Wd S( N( R R ( R R ( R ( sM /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/common/limits.pys f s ( t appt client_managert computet volumet Nonet projectt identityt domaint identity_commont find_domainR t
find_resourcet projectst idt limitst getR R t absolutet itertoolst chainR t rate( R t parsed_argst compute_clientt
volume_clientt
project_idt identity_clientR+ t compute_limitst
volume_limits( ( R sM /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/common/limits.pyt take_actionC s<