diff options
author | Jann Kleen <jann@pocketvillage.com> | 2011-03-31 13:09:22 +0200 |
---|---|---|
committer | Jann Kleen <jann@pocketvillage.com> | 2011-03-31 13:09:22 +0200 |
commit | bcc6e6997c72c16e207aa456246ff0d327d6ca00 (patch) | |
tree | 0b72ce2c6ca29611149d9433e7d22f83dcb2be5b | |
parent | 27a7fb7834822f0ec0d8fd89fdc62a93b5af32de (diff) | |
download | boto-bcc6e6997c72c16e207aa456246ff0d327d6ca00.tar.gz |
added max_records option to get_all_policies()
-rw-r--r-- | boto/ec2/autoscale/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/boto/ec2/autoscale/__init__.py b/boto/ec2/autoscale/__init__.py index 1ab8a26e..1fde6e04 100644 --- a/boto/ec2/autoscale/__init__.py +++ b/boto/ec2/autoscale/__init__.py @@ -180,10 +180,13 @@ class AutoScaleConnection(AWSQueryConnection): params = {} as_name = kwargs.get('as_name', None) names = kwargs.get('names', None) + max_records = kwargs.get('max_records', None) if as_name is not None: params['AutoScalingGroupName'] = as_name if names: self.build_list_params(params, names, 'PolicyNames') + if max_records: + params['MaxRecords'] = max_records return self.get_list('DescribePolicies', params, [('member', ScalingPolicy)]) def delete_launch_configuration(self, launch_config_name): |