diff options
author | Lars Kellogg-Stedman <lars@redhat.com> | 2017-03-04 17:07:16 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-03-07 12:48:32 -0500 |
commit | 657fd40f9ee692a817ec4614cd0d6cb0539ffabf (patch) | |
tree | 868e1b81534cf924687da24bf46b6e57c0a28667 /tests/unittests | |
parent | 1c795b974d13ba269763bb6016ecdbcaa9c7269d (diff) | |
download | vyos-cloud-init-657fd40f9ee692a817ec4614cd0d6cb0539ffabf.tar.gz vyos-cloud-init-657fd40f9ee692a817ec4614cd0d6cb0539ffabf.zip |
net: do not raise exception for > 3 nameservers
log a warning rather than raising ValueError if we see more than three
nameserver addresses.
LP: #1670052
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_distros/test_resolv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_distros/test_resolv.py b/tests/unittests/test_distros/test_resolv.py index 6b535a95..c9d03475 100644 --- a/tests/unittests/test_distros/test_resolv.py +++ b/tests/unittests/test_distros/test_resolv.py @@ -46,7 +46,7 @@ class TestResolvHelper(TestCase): self.assertNotIn('10.3', rp.nameservers) self.assertEqual(len(rp.nameservers), 3) rp.add_nameserver('10.2') - self.assertRaises(ValueError, rp.add_nameserver, '10.3') + rp.add_nameserver('10.3') self.assertNotIn('10.3', rp.nameservers) def test_search_domains(self): |