Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2019-01-24 08:29:12 +0300
committerCasey Deccio <casey@deccio.net>2019-01-24 08:29:12 +0300
commitdf1ead5ebbc1c9e7514b57d322187464a6d13765 (patch)
tree9026b1c44af8ab82b5b9a94bdc03a92c631a8ab8
parent475d5497fdc2b3ada461399278c0f8cf6e6fc652 (diff)
Use defaults temporary locations
-rw-r--r--dnsviz/commands/probe.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/dnsviz/commands/probe.py b/dnsviz/commands/probe.py
index 039cdf6..d6c986f 100644
--- a/dnsviz/commands/probe.py
+++ b/dnsviz/commands/probe.py
@@ -563,10 +563,7 @@ def _cleanup_process(working_dir, pid):
shutil.rmtree(working_dir)
def _serve_zone(zone, zone_file, port):
- try:
- tmpdir = tempfile.mkdtemp(prefix='DNS_dnsviz', dir='/var/tmp/')
- except OSError:
- tmpdir = tempfile.mkdtemp(prefix='DNS_dnsviz')
+ tmpdir = tempfile.mkdtemp(prefix='dnsviz')
env = { 'PATH': '%s:/sbin:/usr/sbin:/usr/local/sbin' % (os.environ.get('PATH', '')) }
pid = None