Only print "Setting DNS" message if debug mode is on.
This commit is contained in:
1 parent
4d33a308bc
commit
5220203bda
1 file changed
+1
@@ -522,6 +522,7 @@ class BaseInterface(object):
|
||||
for dns in (dns1, dns2, dns3):
|
||||
if dns:
|
||||
if misc.IsValidIP(dns):
|
||||
if self.verbose:
|
||||
print 'Setting DNS : ' + dns
|
||||
valid_dns_list.append("nameserver %s\n" % dns)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user