misc: Fix close() call to pass in fd

fd is an int, we need to use os.close().

Signed-off-by: Sam Lang <sam.lang@inktank.com>
This commit is contained in:
Sam Lang 2013-04-15 16:26:22 -05:00
parent cde1429e13
commit 90e2a2ef02

View File

@ -421,7 +421,7 @@ def remote_mktemp(remote, sudo=False):
args.extend([
'python',
'-c',
'import os; import tempfile; (fd,fname) = tempfile.mkstemp(); fd.close(); print fname.rstrip()'
'import os; import tempfile; (fd,fname) = tempfile.mkstemp(); os.close(fd); print fname.rstrip()'
])
proc = remote.run(
args=args,