mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
pick first PTR value instead of erroring out
This commit is contained in:
@@ -2755,16 +2755,6 @@ class TestRecordValidation(TestCase):
|
||||
self.assertEquals(['PTR value "foo.bar" missing trailing .'],
|
||||
ctx.exception.reasons)
|
||||
|
||||
# multi-value requesting single-value
|
||||
with self.assertRaises(AttributeError) as ctx:
|
||||
Record.new(self.zone, '', {
|
||||
'type': 'PTR',
|
||||
'ttl': 600,
|
||||
'values': ['foo.com.', 'bar.net.'],
|
||||
}).value
|
||||
self.assertEquals("Multi-value PTR record has no attribute 'value'",
|
||||
text_type(ctx.exception))
|
||||
|
||||
def test_SSHFP(self):
|
||||
# doesn't blow up
|
||||
Record.new(self.zone, '', {
|
||||
|
Reference in New Issue
Block a user