From 90e2a2ef02b4bbcf80a499770ebfed1702f244c9 Mon Sep 17 00:00:00 2001 From: Sam Lang Date: Mon, 15 Apr 2013 16:26:22 -0500 Subject: [PATCH] misc: Fix close() call to pass in fd fd is an int, we need to use os.close(). Signed-off-by: Sam Lang --- teuthology/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index 12351aebf5c19..13f60a31d8248 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -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, -- 2.39.5