BIND 10 #2119: cfgmgr loading of config check plugins
BIND 10 Development
do-not-reply at isc.org
Thu Jul 5 07:01:16 UTC 2012
#2119: cfgmgr loading of config check plugins
-------------------------------------+-------------------------------------
Reporter: jelte | Owner:
Type: defect | Status: new
Priority: medium | Milestone: New
Component: Unclassified | Tasks
Sensitive: 0 | Keywords:
Sub-Project: DNS | Defect Severity: N/A
Estimated Difficulty: 0 | Feature Depending on Ticket:
Total Hours: 0 | Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
The configmanager has a nifty feature for loading configuration check
plugins; However, it does so by adding the plugin path to the python path,
and then using __import__.
Even though it puts the path at the start, I ran into a problem on one of
my systems where it failed to load one due to a naming conflict (the up
and coming datasrc.py), I think because a module with the same name was
already loaded. This can be avoided by careful naming, but I think there
is a better solution; use the imp module and its load_source() method (we
need to make sure it is not reloaded, taken from cache, or overwrite any
existing module)
--
Ticket URL: <http://bind10.isc.org/ticket/2119>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list