%PDF- %PDF-
Direktori : /proc/self/root/lib/python2.7/site-packages/euca2ools/commands/euimage/pack/ |
Current File : //proc/self/root/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>