diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-03-29 16:21:26 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-03-29 18:05:29 +0200 |
commit | c87332950043471e52b924f7498b63982ec4302c (patch) | |
tree | 017a7dd8364d63bf17d9b746695f6cf208528243 /source4/scripting/bin/samba_dnsupdate | |
parent | 4bbc3ff037026c72f3249f59c1b5af69a6ad6d69 (diff) | |
download | samba-c87332950043471e52b924f7498b63982ec4302c.tar.gz samba-c87332950043471e52b924f7498b63982ec4302c.tar.bz2 samba-c87332950043471e52b924f7498b63982ec4302c.zip |
s4-python: Simplify mechanism for finding included Python modules.
Diffstat (limited to 'source4/scripting/bin/samba_dnsupdate')
-rwxr-xr-x | source4/scripting/bin/samba_dnsupdate | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index fab112e2bd..8a7b8a4e34 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -37,9 +37,9 @@ from ldb import SCOPE_BASE from samba import glue from samba.auth import system_session from samba.samdb import SamDB -import samba.external -resolver = samba.external.dns_resolver() +samba.ensure_external_module("dns.resolver", "dnspython") +import dns.resolver as resolver default_ttl = 900 |