Commit 7b25152b authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac875] We don't use isc.dns, but pydnspp

parent 76a81d33
......@@ -15,8 +15,7 @@
from isc.config.module_spec import module_spec_from_file
from isc.util.file import path_search
from isc.dns import TSIGKey
import pydnspp
from pydnspp import TSIGKey, InvalidParameter
from bind10_config import PLUGIN_PATHS
spec = module_spec_from_file(path_search('tsig_keys.spec', PLUGIN_PATHS))
......@@ -32,7 +31,7 @@ def check(config):
for key in keys:
name = str(TSIGKey(key).get_key_name())
except pydnspp.InvalidParameter as e:
except InvalidParameter as e:
return "TSIG: " + str(e)
if name in keyNames:
return "Multiple TSIG keys with name '" + name + "'"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment