Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/bundle/installimage.pyc
ó
¡ôXc @ sî d d l m Z d d l Z d d l m Z d d l m Z d d l m Z d d l m
Z
m Z d d l m
Z
d d l m Z d d l m Z d d
l m Z d d l m Z d d l m Z m Z d
e e e e
e f d „ ƒ YZ d S( iÿÿÿÿ( t divisionN( t Arg( t QueryHmacV2Auth( t ClientError( t FileTransferProgressBarMixint TabifyingMixin( t EC2( t
RegisterImage( t BootstrapRequest( t S3Request( t BundleAndUploadImage( t BundleCreatingMixint BundleUploadingMixint InstallImagec B sþ e Z d Z e d d d d d e d d ƒe d d d d d ƒe d d
e d d d d
ƒe d d d d d d d ƒe d d d d d d d d d ƒe d d d d d ƒe d d d d e j ƒe d d d d e j ƒg Z d „ Z
d „ Z d „ Z RS(! s3 Bundle, upload and register an image into the clouds -ns --namet route_tot requiredt helps name of the new image (required)s
--descriptions description of the new images --max-pending-partst typet defaulti sv pause the bundling process when more than this number
of parts are waiting to be uploaded (default: 2)s --virtualization-typet choicest paravirtualt hvms% virtualization type for the new images
--platformt metavart windowss/ [Privileged] the new image's platform (windows)s --ec2-urls compute service endpoint URLs
--ec2-auths
--ec2-servicec C s | j ƒ t j | ƒ | j j d ƒ sW t j | j d | j j d ƒ ƒ| j d <n | j j d ƒ s… t j | j ƒ | j d <n | j j d ƒ r½ | j j d ƒ r½ | j
j d ƒ n | j j d ƒ rõ | j j d ƒ rõ | j
j d ƒ n yN t j
j | j d | j j d ƒ ƒ| j d <t j j | j ƒ | j d <Wn' t k
rl| j
j d
d t ƒn X| j ƒ | j ƒ | j ƒ d S( Nt ec2_servicet urlt ec2_urlt ec2_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_urlt bootstrap_servicet bootstrap_auths>