Skip to content

Commit

Permalink
Added support for aliases to the add_change method of ResourceRecordS…
Browse files Browse the repository at this point in the history
…ets.
  • Loading branch information
SeanOC committed Jun 13, 2011
1 parent bee1461 commit d9c76e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boto/route53/record.py
Expand Up @@ -51,9 +51,9 @@ def __init__(self, connection=None, hosted_zone_id=None, comment=None):
def __repr__(self):
return '<ResourceRecordSets: %s>' % self.hosted_zone_id

def add_change(self, action, name, type, ttl=600):
def add_change(self, action, name, type, ttl=600, alias_hosted_zone_id=None, alias_dns_name=None):
"""Add a change request"""
change = Record(name, type, ttl)
change = Record(name, type, ttl, alias_hosted_zone_id=alias_hosted_zone_id, alias_dns_name=alias_dns_name)
self.changes.append([action, change])
return change

Expand Down

0 comments on commit d9c76e9

Please sign in to comment.