Permalink
Browse files

Added an optional resource_records to ResourceRecordSets.add_change()

  • Loading branch information...
1 parent d2f910a commit 05cb5164e549de0af1cd5fa975d7d3bea8a06212 Jay Deiman committed Oct 26, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 boto/route53/record.py
View
@@ -61,7 +61,7 @@ def __repr__(self):
def add_change(self, action, name, type, ttl=600,
alias_hosted_zone_id=None, alias_dns_name=None, identifier=None,
- weight=None, region=None):
+ weight=None, region=None , resource_records=None):
"""
Add a change request to the set.
@@ -113,11 +113,16 @@ def add_change(self, action, name, type, ttl=600,
record sets that have the same combination of DNS name and type,
a value that determines which region this should be associated with
for the latency-based routing
+
+ :type resource_records list
+ :param resource_records *An optional list of the resource records for
+ this record
"""
change = Record(name, type, ttl,
alias_hosted_zone_id=alias_hosted_zone_id,
alias_dns_name=alias_dns_name, identifier=identifier,
- weight=weight, region=region)
+ weight=weight, region=region ,
+ resource_records=resource_records)
self.changes.append([action, change])
return change

0 comments on commit 05cb516

Please sign in to comment.