Browse Source

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

Michal 'vorner' Vaner 14 years ago
parent
commit
7b25152b5b
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/bin/cfgmgr/plugins/tsig_keys.py

+ 2 - 3
src/bin/cfgmgr/plugins/tsig_keys.py

@@ -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:
         try:
             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 + "'"