summaryrefslogtreecommitdiffstats
path: root/deploy/reap.py
diff options
context:
space:
mode:
authorDaniel Smith <daniel.smith@ericsson.com>2015-12-09 10:08:28 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-12-09 10:08:28 +0000
commit2e2d69dcef35b57c57f30b7f3a96d32353e9bc05 (patch)
tree11b929c439dd5823f6b56a403c4452797a2b1d56 /deploy/reap.py
parent90722b2a0de85d9b60130883b1b4f7b0e21dcffd (diff)
parentfaecd53622b233f72961ce626ef70788b8a12562 (diff)
Merge "Refactor temporary directory creation"
Diffstat (limited to 'deploy/reap.py')
-rwxr-xr-xdeploy/reap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/reap.py b/deploy/reap.py
index 2155f3faa..72bfcee4c 100755
--- a/deploy/reap.py
+++ b/deploy/reap.py
@@ -14,6 +14,7 @@ import os
import yaml
import glob
import shutil
+import tempfile
from common import (
N,
@@ -294,7 +295,7 @@ class Reap(object):
def intro(self):
delete(self.dea_file)
delete(self.dha_file)
- self.temp_dir = exec_cmd('mktemp -d')
+ self.temp_dir = tempfile.mkdtemp()
date = time.strftime('%c')
self.write(self.dea_file,
DEA_1.format(date=date, comment=self.comment), False)