parent
5561312bd6
commit
e068e65c20
@ -0,0 +1,27 @@
|
|||||||
|
Index: boto-2.9.6/boto/ec2/autoscale/policy.py
|
||||||
|
===================================================================
|
||||||
|
--- boto-2.9.6.orig/boto/ec2/autoscale/policy.py
|
||||||
|
+++ boto-2.9.6/boto/ec2/autoscale/policy.py
|
||||||
|
@@ -47,17 +47,17 @@ class Alarm(object):
|
||||||
|
class AdjustmentType(object):
|
||||||
|
def __init__(self, connection=None):
|
||||||
|
self.connection = connection
|
||||||
|
- self.adjustment_types = ListElement([])
|
||||||
|
+ self.adjustment_type = None
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
- return 'AdjustmentType:%s' % self.adjustment_types
|
||||||
|
+ return 'AdjustmentType:%s' % self.adjustment_type
|
||||||
|
|
||||||
|
def startElement(self, name, attrs, connection):
|
||||||
|
- if name == 'AdjustmentType':
|
||||||
|
- return self.adjustment_types
|
||||||
|
+ return
|
||||||
|
|
||||||
|
def endElement(self, name, value, connection):
|
||||||
|
- return
|
||||||
|
+ if name == 'AdjustmentType':
|
||||||
|
+ return self.adjustment_types
|
||||||
|
|
||||||
|
|
||||||
|
class MetricCollectionTypes(object):
|
@ -0,0 +1,23 @@
|
|||||||
|
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')
|
Loading…
Reference in new issue