From: Jelmer Vernooij Date: Thu, 27 Sep 2012 16:34:36 +0000 (-0700) Subject: sanba.upgradehelpers: Use standard functionality for getting temp dir. X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=0883e174bfdec22a4ff373041afce396cfe7fd7b;p=obnox%2Fsamba%2Fsamba-obnox.git sanba.upgradehelpers: Use standard functionality for getting temp dir. --- diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py index ebb038eba8c..55de4be9e4d 100644 --- a/source4/scripting/python/samba/upgradehelpers.py +++ b/source4/scripting/python/samba/upgradehelpers.py @@ -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,"