Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancestatus.pyo

ó
¡ôXc@s^ddlZddlmZmZddlmZdefd„ƒYZd„Zd„ZdS(iÿÿÿÿN(tArgtFilter(t
EC2RequesttDescribeInstanceStatuscBsFeZdZedddddddƒedd	d
dd7ddƒed
ddd	d
ddƒgZedƒeddd8ddƒedddƒedddƒedddƒedd edd!ƒed"dd#ƒed$dd%dd9ƒed+dd:dd.ƒed/dd0dd;ƒed1dd<dd2ƒgZd3d4d5gZ	d6„Z
RS(=s;Show information about instance status and scheduled eventst
InstanceIdtmetavartINSTANCEtnargst*thelps#limit results to specific instancess--hide-healthytactiont
store_truetroute_tos+hide instances where all status checks passs--include-all-instancestdesttIncludeAllInstancess3show all instances, not just those that are runningsavailability-zones
event.codetchoicessinstance-rebootsinstance-retirements
instance-stopssystem-maintenances&the code identifying the type of eventsevent.descriptionsan event's descriptionsevent.not-afters#an event's latest possible end timesevent.not-befores'an event's earliest possible start timesinstance-state-codettypes'numeric code identifying instance statesinstance-state-namesinstance statesinstance-status.statussinstance's statustoktimpairedtinitializingsinsufficient-datasnot-applicablesinstance-status.reachabilitytpassedtfailedsinstance's reachability statusssystem-status.statussinstance's system statusssystem-status.reachabilitys%instance's system reachability statustinstanceStatusSettdetailst	eventsSetcCs?x8|jdƒpgD]!}|jjdtƒry|jdiƒjdƒdkry|jdiƒjdƒdkryqn|jd|jdƒ|jd	ƒ|jd
iƒjdƒ|jd
iƒjdƒ|jdiƒjdƒ|jdiƒjdƒt|ƒt|ƒf	ƒGHx^|jdiƒjd
ƒp5gD];}|jd|jdƒ|jdƒ|jdƒfƒGHq6Wx^|jdiƒjd
ƒp–gD];}|jd|jdƒ|jdƒ|jdƒfƒGHq—Wx^|jdƒpëgD]G}|jd|jdƒ|jdƒ|jdƒ|jdƒfƒGHqìWqWdS(NRthide_healthytsystemStatuststatusRtinstanceStatusRt
instanceIdtavailabilityZonet
instanceStatetnametcodeRtSYSTEMSTATUSt
impairedSincetINSTANCESTATUSRtEVENTt	notBeforetnotAftertdescription(tgettargstFalsettabifytget_retirement_statustget_retirement_date(tselftresulttssettsstatustistatustevent((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancestatus.pytprint_resultHs2!!($($N(sinstance-rebootsinstance-retirements
instance-stopssystem-maintenancesinstance-retirement(sokRRsinsufficient-datasnot-applicable(RRRsinsufficient-data(sokRRsinsufficient-datasnot-applicable(RRRsinsufficient-data(t__name__t
__module__tDESCRIPTIONRtNonetARGSRtinttFILTERSt	LIST_TAGSR5(((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancestatus.pyR!sL						cCs¨d}x›|jdgƒD]‡}|jdƒ}|dk	r|dkrO|}q d}tjj|j|ƒ|ƒ}tjj||ƒ}||kr |}q qqW|S(NRR&s%Y-%m-%dT%H:%M:%S.%fZ(R9R)tdatetimetstrptime(t
status_settretirement_dateR4tevent_starttdate_formattevent_start_datetimetretirement_datetime((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancestatus.pyR.ds			cCs*t|jdgƒƒdkr"dSdSdS(NRitretiringtactive(tlenR)(R@((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancestatus.pyR-vs(	R>trequestbuilderRRteuca2ools.commands.ec2RRR.R-(((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstancestatus.pyt<module>s
C	
Back to Directory File Manager