ó ¡ôXc@s@ddlmZmZddlmZdefd„ƒYZdS(iÿÿÿÿ(tArgtMutuallyExclusiveArgList(t EC2RequesttDescribeImageAttributecBseZdZedddddƒeedddd d d d d ddƒedddd d d d dddƒedddd d d d dddƒeddd d d d dddƒeddd d d d dddƒeddd d d d dddƒƒjƒgZdd dgZd „ZRS(!s/Show information about an attribute of an imagetImageIdtmetavartIMAGEthelpsimage to describes-ls--launch-permissiontdestt Attributetactiont store_consttconsttlaunchPermissionsdisplay launch permissionss-ps--product-codest productCodesslist associated product codess-Bs--block-device-mappingtblockDeviceMappingsdescribe block device mappingss--kerneltkernelsshow associated kernel image IDs --ramdisktramdisks show associated ramdisk image IDs --descriptiont descriptionsshow the image's descriptionc Cs|jdƒ}xQ|jdgƒD]=}x4|jƒD]&\}}|jd|||fƒGHq5Wq"Wxq|jdgƒD]]}d|krªdj|d|jdƒƒ}n|jdƒ}|jd|d|fƒGHqvWxy|jdgƒD]e}|jdƒp|jd iƒjd ƒ} d j|jd ƒ| ƒ} |jd|d | fƒGHqêW|jdƒrŒ|jd|d|djdƒfƒGHn|jdƒrÅ|jd|d|djdƒfƒGHn|jdƒrþ|jd|d|djdƒfƒGHndS(NtimageIdR Rttypes [{0}: {1}]t productCodeRt virtualNametebst snapshotIds{0}: {1}t deviceNametblockDeviceMapRtvalueRR(tgettitemsttabifytformattNone( tselftresulttimage_idtpermt entity_typet entity_nametcodetcode_strtblockdevt blockdev_srct blockdev_str((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeimageattribute.pyt print_result5s8    ( t__name__t __module__t DESCRIPTIONRRtrequiredtARGSt LIST_TAGSR,(((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeimageattribute.pyRs(     N(trequestbuilderRRteuca2ools.commands.ec2RR(((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeimageattribute.pyts