samba_dnsupdate: Put samba.kcc import after path insert of bin/python
authorGarming Sam <garming@catalyst.net.nz>
Tue, 27 Mar 2018 02:24:44 +0000 (15:24 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 3 May 2018 03:25:27 +0000 (05:25 +0200)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/scripting/bin/samba_dnsupdate

index d6f77d4cabbb4b3ebb822a3a68c1d4d1907a4df5..508bd5346bd66155f21b84df6325a50aeca168a7 100755 (executable)
@@ -24,7 +24,6 @@ import fcntl
 import sys
 import tempfile
 import subprocess
-from samba.kcc import kcc_utils
 
 # ensure we get messages out immediately, so they get in the samba logs,
 # and don't get swallowed by a timeout
@@ -49,6 +48,7 @@ from samba.samdb import SamDB
 from samba.dcerpc import netlogon, winbind
 from samba.netcmd.dns import cmd_dns
 from samba import gensec
+from samba.kcc import kcc_utils
 import ldb
 
 samba.ensure_third_party_module("dns", "dnspython")