mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
do not try to read a yaml of a symlink to /dev/null
This commit is contained in:
parent
998181c5e0
commit
9e2ae63c4a
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ def _update_log_parent_symlinks():
|
|||
|
||||
name = log_md[: -len(METADATA_FILE_EXT)]
|
||||
parent_symlink = os.path.join(OPERATIONS_PATH, f"{name}.parent.yml")
|
||||
if not os.path.exists(parent_symlink) or os.path.islink(parent_symlink):
|
||||
if (os.path.islink(log_file) and os.path.realpath(log_file) == "/dev/null") or os.path.islink(parent_symlink):
|
||||
continue
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue