summaryrefslogtreecommitdiff
path: root/boto/route53/zone.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/route53/zone.py')
-rw-r--r--boto/route53/zone.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/boto/route53/zone.py b/boto/route53/zone.py
index bb6907da..b21c8de4 100644
--- a/boto/route53/zone.py
+++ b/boto/route53/zone.py
@@ -60,7 +60,7 @@ class Zone(object):
return response['ChangeResourceRecordSetsResponse']['ChangeInfo']
def _new_record(self, changes, resource_type, name, value, ttl, identifier,
- comment=""):
+ comment=""):
"""
Add a CREATE change record to an existing ResourceRecordSets
@@ -233,7 +233,14 @@ class Zone(object):
# name/type for get_all_rrsets sets the starting record; they
# are not a filter
- results = [r for r in returned if r.name == name and r.type == type]
+ results = []
+ for r in returned:
+ if r.name == name and r.type == type:
+ results.append(r)
+ # Is at the end of the list of matched records. No need to continue
+ # since the records are sorted by name and type.
+ else:
+ break
weight = None
region = None