You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
24 lines
1.1 KiB
12 years ago
|
Index: boto-2.9.6/boto/ec2/connection.py
|
||
|
===================================================================
|
||
|
--- boto-2.9.6.orig/boto/ec2/connection.py
|
||
|
+++ boto-2.9.6/boto/ec2/connection.py
|
||
|
@@ -235,7 +235,8 @@ class EC2Connection(AWSQueryConnection):
|
||
|
|
||
|
def register_image(self, name=None, description=None, image_location=None,
|
||
|
architecture=None, kernel_id=None, ramdisk_id=None,
|
||
|
- root_device_name=None, block_device_map=None):
|
||
|
+ root_device_name=None, block_device_map=None,
|
||
|
+ _virtualization_type=None):
|
||
|
"""
|
||
|
Register an image.
|
||
|
|
||
|
@@ -283,6 +284,8 @@ class EC2Connection(AWSQueryConnection):
|
||
|
params['ImageLocation'] = image_location
|
||
|
if root_device_name:
|
||
|
params['RootDeviceName'] = root_device_name
|
||
|
+ if _virtualization_type:
|
||
|
+ params['VirtualizationType'] = _virtualization_type
|
||
|
if block_device_map:
|
||
|
block_device_map.build_list_params(params)
|
||
|
rs = self.get_object('RegisterImage', params, ResultSet, verb='POST')
|