Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/euimage/pack/profiles.pyo
ó
¡ôXc @ s d d l 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 „ Z d e f d „ ƒ YZ
d S( iÿÿÿÿN( t BundleAndUploadImage( t
CreateTags( t
RegisterImage( t check_dict_whitelistt transform_dictc C s d | k r t | | ƒ Sd S( së
This is a factory method that takes a dict with image profile
information and returns a profile object. While it currently always
returns instance-store images, it is meant to handle multiple types
in the future.
t bundleN( t InstanceStoreImageProfile( t profile_dictt arch( ( sL /usr/lib/python2.7/site-packages/euca2ools/commands/euimage/pack/profiles.pyt build_image_profile# s R c B s8 e Z d „ Z d „ Z d „ Z d „ Z d d „ Z RS( c C s» t | d d d d d g ƒ i | _ i | _ i | _ | j d ƒ pI i } | j d | ƒ | j | ƒ | j d ƒ p{ i } | j d | ƒ | j | ƒ | j | j d ƒ p³ i ƒ d S( Nt profileR t providest registert tagR ( R t bundle_argst
register_argst tag_argst gett
setdefaultt, _InstanceStoreImageProfile__load_bundle_argst. _InstanceStoreImageProfile__load_register_argst) _InstanceStoreImageProfile__load_tag_args( t selfR R R R ( ( sL /usr/lib/python2.7/site-packages/euca2ools/commands/euimage/pack/profiles.pyt __init__/ s
c C sH t | d d g ƒ | j j | ƒ | j j d ƒ sD t d ƒ ‚ n d S( NR R s register: arch is required( R R t updateR t
ValueError( R t args( ( sL /usr/lib/python2.7/site-packages/euca2ools/commands/euimage/pack/profiles.pyt __load_bundle_args>