mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Handle MX preference of 0
This commit is contained in:
@@ -506,7 +506,10 @@ class MxValue(object):
|
||||
def _validate_value(cls, value):
|
||||
reasons = []
|
||||
try:
|
||||
int(value.get('preference', None) or value['priority'])
|
||||
try:
|
||||
int(value['preference'])
|
||||
except KeyError:
|
||||
int(value['priority'])
|
||||
except KeyError:
|
||||
reasons.append('missing preference')
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user