Browse Source

Add missing class

pull/47/head
Ross McFarland 9 years ago
parent
commit
f2b3e9e3f4
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      octodns/record.py

+ 10
- 0
octodns/record.py View File

@ -311,6 +311,16 @@ class _ValueMixin(object):
self.fqdn, self.value) 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): class CnameRecord(_ValueMixin, Record):
_type = 'CNAME' _type = 'CNAME'


Loading…
Cancel
Save