summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/Blast.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools/Blast.py')
-rw-r--r--src/lib/Client/Tools/Blast.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/Blast.py b/src/lib/Client/Tools/Blast.py
index 6eb330c60..cd926accd 100644
--- a/src/lib/Client/Tools/Blast.py
+++ b/src/lib/Client/Tools/Blast.py
@@ -16,9 +16,10 @@ class Blast(Bcfg2.Client.Tools.SYSV.SYSV):
def __init__(self, logger, setup, config):
# dont use the sysv constructor
Bcfg2.Client.Tools.PkgTool.__init__(self, logger, setup, config)
- self.noaskname = tempfile.mktemp()
+ noaskfile = tempfile.NamedTemporaryFile()
+ self.noaskname = noaskfile.name
try:
- open(self.noaskname, 'w+').write(Bcfg2.Client.Tools.SYSV.noask)
+ noaskfile.write(Bcfg2.Client.Tools.SYSV.noask)
except:
pass