Browse Source

Force the value passed to FQDN to be a str

pull/670/head
Ross McFarland 5 years ago
parent
commit
cda56a3ca7
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      octodns/record/__init__.py

+ 3
- 1
octodns/record/__init__.py View File

@ -758,7 +758,9 @@ class _TargetValue(object):
reasons.append('empty value')
elif not data:
reasons.append('missing value')
elif not FQDN(data, allow_underscores=True).is_valid:
# NOTE: FQDN complains if the data it receives isn't a str, it doesn't
# allow unicode... This is likely specific to 2.7
elif not FQDN(str(data), allow_underscores=True).is_valid:
reasons.append('{} value "{}" is not a valid FQDN'
.format(_type, data))
elif not data.endswith('.'):


Loading…
Cancel
Save