sanba.upgradehelpers: Use standard functionality for getting temp dir.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 27 Sep 2012 16:34:36 +0000 (09:34 -0700)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 27 Sep 2012 16:45:12 +0000 (18:45 +0200)
source4/scripting/python/samba/upgradehelpers.py

index ebb038eba8cd0c53df4bcdd05905a671c4c8c5cf..55de4be9e4d7631a3aa14f24d39cbcea084756e0 100644 (file)
@@ -940,9 +940,6 @@ def print_provision_ranges(dic, limit_print, dest, samdb_path, invocationid):
                                 obj["max"], id)
 
     if ldif != "":
-        if dest is None:
-            dest = "/tmp"
-
         file = tempfile.mktemp(dir=dest, prefix="usnprov", suffix=".ldif")
         print
         print "To track the USNs modified/created by provision and upgrade proivsion,"