Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeimageattribute.pyc
�
��Xc@s@ddlmZmZddlmZdefd��YZdS(i����(tArgtMutuallyExclusiveArgList(t
EC2RequesttDescribeImageAttributecBseZdZeddddd�eedddd	d
ddd
dd�edddd	d
ddddd�edddd	d
ddddd�eddd	d
ddddd�eddd	d
ddddd�eddd	d
ddddd��j�gZdd
dgZd �ZRS(!s/Show information about an attribute of an imagetImageIdtmetavartIMAGEthelpsimage to describes-ls--launch-permissiontdestt	Attributetactiontstore_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
--descriptiontdescriptionsshow the image's descriptioncCs|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
�}	dj|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}]tproductCodeRtvirtualNametebst
snapshotIds{0}: {1}t
deviceNametblockDeviceMapRtvalueRR(tgettitemsttabifytformattNone(tselftresulttimage_idtpermtentity_typetentity_nametcodetcode_strtblockdevtblockdev_srctblockdev_str((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeimageattribute.pytprint_result5s8
	(	t__name__t
__module__tDESCRIPTIONRRtrequiredtARGSt	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.pyt<module>s