Fix Record Object conversions
Change-Id: I1322dacae016afd4e74e28f2d5fbf25a231e59c5 Closes-Bug: #1440844 Closes-Bug: #1440847
This commit is contained in:
parent
4620275cdb
commit
7170fe4cb9
@ -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
|
||||
|
@ -22,7 +22,7 @@ class TXT(Record):
|
||||
Defined in: RFC1035
|
||||
"""
|
||||
FIELDS = {
|
||||
'txt-data': {
|
||||
'txt_data': {
|
||||
'schema': {
|
||||
'type': 'string',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user