1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Add missing class

This commit is contained in:
Ross McFarland
2017-05-28 07:26:47 -07:00
parent 9e172ed303
commit f2b3e9e3f4

View File

@@ -311,6 +311,16 @@ class _ValueMixin(object):
self.fqdn, self.value)
class AliasRecord(_ValueMixin, Record):
_type = 'ALIAS'
def _process_value(self, value):
if not value.endswith(self.zone.name):
raise Exception('Invalid record {}, value ({}) must be in '
'same zone.'.format(self.fqdn, value))
return value.lower()
class CnameRecord(_ValueMixin, Record):
_type = 'CNAME'