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.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/boto/route53/zone.py b/boto/route53/zone.py
index 167a0891..b21c8de4 100644
--- a/boto/route53/zone.py
+++ b/boto/route53/zone.py
@@ -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