mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmdbusd: Remove try/except for mkfifo
We should never run into this error condition when using tempfile.mkdtemp.
This commit is contained in:
parent
0d957dcacc
commit
01ef2f2525
@ -122,11 +122,8 @@ class LVMShellProxy(object):
|
||||
tmp_dir = tempfile.mkdtemp(prefix="lvmdbus_")
|
||||
tmp_file = "%s/lvmdbus_report" % (tmp_dir)
|
||||
|
||||
try:
|
||||
# Let's create a fifo for the report output
|
||||
os.mkfifo(tmp_file, 0o600)
|
||||
except FileExistsError:
|
||||
pass
|
||||
# Create a fifo for the report output
|
||||
os.mkfifo(tmp_file, 0o600)
|
||||
|
||||
# Open the fifo for use to read and for lvm child process to write to.
|
||||
self.report_fd = os.open(tmp_file, os.O_NONBLOCK)
|
||||
|
Loading…
Reference in New Issue
Block a user