Fix Record Object conversions

Change-Id: I1322dacae016afd4e74e28f2d5fbf25a231e59c5
Closes-Bug: #1440844
Closes-Bug: #1440847
This commit is contained in:
Graham Hayes 2015-04-07 13:15:49 +01:00
parent 4620275cdb
commit 7170fe4cb9
2 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ class SRV(Record):
return "%(priority)s %(weight)s %(target)s %(port)s" % self
def _from_string(self, value):
priortiy, weight, port, target = value.split(' ')
self.priortiy = int(priortiy)
priority, weight, port, target = value.split(' ')
self.priority = int(priority)
self.weight = int(weight)
self.port = int(port)
self.target = target

View File

@ -22,7 +22,7 @@ class TXT(Record):
Defined in: RFC1035
"""
FIELDS = {
'txt-data': {
'txt_data': {
'schema': {
'type': 'string',
},