Ejemplo n.º 1
0
 def __build_bundle_command(self, image_filename, image_size=None):
     bundle_args = ('prefix', 'destination', 'arch', 'privatekey', 'cert',
                    'ec2cert', 'user', 'kernel', 'ramdisk',
                    'block_device_mappings', 'productcodes', 'part_size',
                    'enc_key', 'enc_iv', 'show_progress')
     bundle_args_dict = dict((key, self.args.get(key))
                             for key in bundle_args)
     return BundleImage.from_other(self, image=image_filename,
                                   image_size=image_size,
                                   image_type='machine', **bundle_args_dict)
Ejemplo n.º 2
0
 def __build_bundle_command(self, image_filename, image_size=None):
     bundle_args = ('prefix', 'destination', 'arch', 'privatekey', 'cert',
                    'ec2cert', 'user', 'kernel', 'ramdisk',
                    'block_device_mappings', 'productcodes', 'part_size',
                    'enc_key', 'enc_iv', 'show_progress')
     bundle_args_dict = dict((key, self.args.get(key))
                             for key in bundle_args)
     return BundleImage.from_other(self, image=image_filename,
                                   image_size=image_size,
                                   image_type='machine', **bundle_args_dict)