mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #11051 from cachedout/10951
Don't seek on named pipes.
This commit is contained in:
commit
b37e0b9a89
@ -1396,7 +1396,7 @@ def append(path, *args):
|
||||
try:
|
||||
ofile.seek(-1, os.SEEK_END)
|
||||
except IOError as exc:
|
||||
if exc.errno == errno.EINVAL:
|
||||
if exc.errno == errno.EINVAL or exc.errno == errno.ESPIPE:
|
||||
# Empty file, simply append lines at the beginning of the file
|
||||
pass
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user