Adding support for comments on hosted zones.

Paired with @kpdonn
This commit is contained in:
Philip Corliss 2015-04-23 19:01:20 +00:00
commit b27f3c3d9f
3 changed files with 28 additions and 4 deletions

View file

@ -106,9 +106,10 @@ class RecordSet(object):
class FakeZone(object):
def __init__(self, name, id_):
def __init__(self, name, id_, comment=None):
self.name = name
self.id = id_
self.comment = comment
self.rrsets = []
def add_rrset(self, record_set):
@ -170,9 +171,9 @@ class Route53Backend(BaseBackend):
self.zones = {}
self.health_checks = {}
def create_hosted_zone(self, name):
def create_hosted_zone(self, name, comment=None):
new_id = get_random_hex()
new_zone = FakeZone(name, new_id)
new_zone = FakeZone(name, new_id, comment=comment)
self.zones[new_id] = new_zone
return new_zone