add private zone in templates. Because it should have. It is always to False because it doesn't support for private zones.

This commit is contained in:
beeva-antonioirizar 2016-02-17 15:24:11 +01:00
parent 1448cf3541
commit 1ac40cbaf6
2 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,7 @@ class FakeZone(object):
self.name = name
self.id = id_
self.comment = comment
self.private_zone = False
self.rrsets = []
def add_rrset(self, record_set):

View File

@ -139,6 +139,7 @@ GET_HOSTED_ZONE_RESPONSE = """<GetHostedZoneResponse xmlns="https://route53.amaz
<ResourceRecordSetCount>{{ zone.rrsets|count }}</ResourceRecordSetCount>
<Config>
<Comment>{{ zone.comment }}</Comment>
<PrivateZone>{{ zone.private_zone }}</PrivateZone>
</Config>
</HostedZone>
<DelegationSet>
@ -153,6 +154,10 @@ CREATE_HOSTED_ZONE_RESPONSE = """<CreateHostedZoneResponse xmlns="https://route5
<Id>/hostedzone/{{ zone.id }}</Id>
<Name>{{ zone.name }}</Name>
<ResourceRecordSetCount>0</ResourceRecordSetCount>
<Config>
<Comment>{{ zone.comment }}</Comment>
<PrivateZone>{{ zone.private_zone }}</PrivateZone>
</Config>
</HostedZone>
<DelegationSet>
<NameServers>
@ -169,6 +174,7 @@ LIST_HOSTED_ZONES_RESPONSE = """<ListHostedZonesResponse xmlns="https://route53.
<Name>{{ zone.name }}</Name>
<Config>
<Comment>{{ zone.comment }}</Comment>
<PrivateZone>{{ zone.private_zone }}</PrivateZone>
</Config>
<ResourceRecordSetCount>{{ zone.rrsets|count }}</ResourceRecordSetCount>
</HostedZone>