diff options
Diffstat (limited to 'cloudinit/net/bsd.py')
-rw-r--r-- | cloudinit/net/bsd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/net/bsd.py b/cloudinit/net/bsd.py index dc322582..ff5c7413 100644 --- a/cloudinit/net/bsd.py +++ b/cloudinit/net/bsd.py @@ -138,14 +138,14 @@ class BSDRenderer(renderer.Renderer): resolvconf.parse() # Add some nameservers - for server in nameservers: + for server in set(nameservers): try: resolvconf.add_nameserver(server) except ValueError: util.logexc(LOG, "Failed to add nameserver %s", server) # And add any searchdomains. - for domain in searchdomains: + for domain in set(searchdomains): try: resolvconf.add_search_domain(domain) except ValueError: |