mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
parent
cde1429e13
commit
90e2a2ef02
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user