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

ó
¡ôXc@sZddlmZddlmZddlmZddlmZdefd„ƒYZdS(iÿÿÿÿ(tArg(t
ArgumentError(tec2_block_device_mapping(t
EC2Requestt
RegisterImagecBsjeZdZedddddddƒedd	d
ddedd
ƒeddd
dddƒeddd
ddd>ddƒedd
dddddƒedd
ddd dd!ƒed"d
d#dd$dd%ƒed&d'd(d?dd)ƒed*d+dd,d
d-d.d/d0ed1gdd2ƒed3d
d4dd@dd7ƒed8d
d9dd:ddAdd;ƒgZd<„Zd=„Z	RS(BsRegister a new imaget
ImageLocationtmetavartMANIFESTtnargst?thelpsalocation of the image manifest in S3 storage
                (required for instance-store images)s-ns--nametdesttNametrequireds name of the new image (required)s-ds
--descriptiontDescriptionsdescription of the new images-as--architecturetArchitecturetchoicesti386tx86_64tarmhfs!CPU architecture of the new images--kerneltKernelIdtKERNELs0ID of the kernel to associate with the new images	--ramdiskt	RamdiskIdtRAMDISKs1ID of the ramdisk to associate with the new images--root-device-nametRootDeviceNametDEVICEs%root device name (default: /dev/sda1)s-ss
--snapshottroute_tos#snapshot to use for the root devices-bs--block-device-mappings
DEVICE=MAPPEDtBlockDeviceMappingtactiontappendttypetdefaultsßdefine a block device mapping for the image, in the
                form DEVICE=MAPPED, where "MAPPED" is "none", "ephemeral(0-3)",
                or
                "[SNAP-ID]:[GiB]:[true|false]:[standard|VOLTYPE[:IOPS]]"s--virtualization-typetVirtualizationTypetparavirtualthvms%virtualization type for the new images
--platformtPlatformtwindowss/[Privileged] the new image's platform (windows)cCsO|jjdƒrW|jjdƒr3tdƒ‚n|jjdƒrKtdƒ‚qKnô|jjdƒsyd|jd<n|jjdƒ}x½|jdD]i}|jdƒ|jdkr™||jd	iƒjd
ƒkrþ|rþtdj|dƒƒ‚qPq™q™W|r?|jdji|jdd6i|d
6d	6ƒntdƒ‚dS(
NRRs?argument --root-device-name: not allowed with argument MANIFESTtsnapshots7argument --snapshot: not allowed with argument MANIFESTs	/dev/sda1Rt
DeviceNametEbst
SnapshotIds\snapshot ID supplied with --snapshot conflicts with block device mapping for root device {0}sNeither a manifest location or a root device snapshot mapping must be specified(targstgetRtparamstformatR(tselfR%tmapping((sH/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/registerimage.pyt
preprocessEs,!
cCs!|jd|jdƒfƒGHdS(NtIMAGEtimageId(ttabifyR*(R-tresult((sH/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/registerimage.pytprint_resultks(RRRN(R!R"(R$(
t__name__t
__module__tDESCRIPTIONRtTruetNoneRtARGSR/R4(((sH/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/registerimage.pyR!s<	&N(	trequestbuilderRtrequestbuilder.exceptionsRteuca2ools.commands.argtypesRteuca2ools.commands.ec2RR(((sH/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/registerimage.pyt<module>s
Back to Directory File Manager