Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/bundle/installimage.pyc
�
��Xc@ s�ddlmZddlZddlmZddlmZddlmZddl	m
Z
mZddlm
Z
ddlmZdd	lmZdd
lmZddlmZddlmZmZd
eeee
efd��YZdS(i����(tdivisionN(tArg(tQueryHmacV2Auth(tClientError(tFileTransferProgressBarMixintTabifyingMixin(tEC2(t
RegisterImage(tBootstrapRequest(t	S3Request(tBundleAndUploadImage(tBundleCreatingMixintBundleUploadingMixintInstallImagecB s�eZdZedddddedd�eddddd�ed	d
edddd
�eddddddd�eddddddd dd�eddddd�eddddej�eddddej�gZ	d�Z
d�Zd�ZRS(!s3Bundle, upload and register an image into the clouds-ns--nametroute_totrequiredthelps name of the new image (required)s
--descriptionsdescription of the new images--max-pending-partsttypetdefaultisvpause the bundling process when more than this number
                of parts are waiting to be uploaded (default: 2)s--virtualization-typetchoicestparavirtualthvms%virtualization type for the new images
--platformtmetavartwindowss/[Privileged] the new image's platform (windows)s	--ec2-urlscompute service endpoint URLs
--ec2-auths
--ec2-servicecC s�|j�tj|�|jjd�sWtj|jd|jjd��|jd<n|jjd�s�tj|j	�|jd<n|jjd�r�|jjd�r�|j
jd�n|jjd�r�|jjd�r�|j
jd�nyNtj
j|jd|jjd��|jd<tjj|j	�|jd	<Wn'tk
rl|j
jd
dt�nX|j�|j�|j�dS(Ntec2_serviceturltec2_urltec2_authsP-U/--url used without --ec2-url; communication with different regions may resultsP--ec2-url used without -U/--url; communication with different regions may resultt
bootstrap_urltbootstrap_servicetbootstrap_auths>bootstrap setup failed; auto cert fetching will be unavailabletexc_info(tconfigure_bundle_upload_authR	t	configuretargstgetRt
from_othertserviceRtauthtlogtwarnRt
SERVICE_CLASSt
AUTH_CLASSRtdebugtTruetconfigure_bundle_credstconfigure_bundle_propertiestconfigure_bundle_output(tself((sJ/usr/lib/python2.7/site-packages/euca2ools/commands/bundle/installimage.pyR!As*

(%%	% 


c+C stj|d|jdd|jdd|jdd|jjd�d|jjd�d|jjd�d|jjd�d|jjd�d	|jjd	�d
|jjd
�d|jjd�d|jjd�d
|jjd
�d|jjd�d|jjd�d|jjd�d|jjd�d|jjd�d|jjd�d|jjd��}|j�}|ddd}tj|d|jdd|jdd|jdd|jdd|d |jjd!�d"|jjd#�d$|jjd%��}|j�}|S(&Ntimagetarchtbuckettprefixtdestinationtkerneltramdiskt
image_typet
image_sizetcertt
privatekeytec2certtusertproductcodestenc_ivtenc_keytmax_pending_partst	part_sizetbatcht
show_progresst	manifestsitkeyR%RR&RtNametnametArchitecturet
ImageLocationtDescriptiontdescriptiontVirtualizationTypetvirtualization_typetPlatformtplatform(R
R$R"R#tmainR(R0treqt
result_bundletimage_locationtresult_register((sJ/usr/lib/python2.7/site-packages/euca2ools/commands/bundle/installimage.pyRQes2 $$$$$ cC s!|jd|jd�f�GHdS(NtIMAGEtimageId(ttabifyR#(R0tresult((sJ/usr/lib/python2.7/site-packages/euca2ools/commands/bundle/installimage.pytprint_result�sN(RR(R(
t__name__t
__module__tDESCRIPTIONRtNoneR,tinttargparsetSUPPRESStARGSR!RQRZ(((sJ/usr/lib/python2.7/site-packages/euca2ools/commands/bundle/installimage.pyR
,s(	$	(t
__future__RR`trequestbuilderRtrequestbuilder.auth.awsRtrequestbuilder.exceptionsRtrequestbuilder.mixinsRRteuca2ools.commands.ec2Rt$euca2ools.commands.ec2.registerimageRteuca2ools.commands.bootstrapRteuca2ools.commands.s3R	t.euca2ools.commands.bundle.bundleanduploadimageR
t euca2ools.commands.bundle.mixinsRRR
(((sJ/usr/lib/python2.7/site-packages/euca2ools/commands/bundle/installimage.pyt<module>s