s4-provision: fixed use of rndc command from python
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Feb 2010 06:49:01 +0000 (17:49 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 26 Feb 2010 07:19:27 +0000 (18:19 +1100)
rndc command is now a list

source4/scripting/python/samba/provision.py

index 2dd664303da0537984705a2ac3e3e85d18bbef3e..def91f36517375cf224f662ccdcf6ce59b5b11db 100644 (file)
@@ -1541,7 +1541,7 @@ def create_zone_file(lp, message, paths, targetdir, setup_path, dnsdomain,
 
     # we need to freeze the zone while we update the contents
     if targetdir is None:
-        rndc = lp.get("rndc command")
+        rndc = ' '.join(lp.get("rndc command"))
         os.system(rndc + " freeze " + lp.get("realm"))
 
     setup_file(setup_path("provision.zone"), paths.dns, {