mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-08 09:46:29 +00:00
Ignore rootfs (#3097)
This commit is contained in:
parent
966b962ccf
commit
ab704c11cf
@ -93,7 +93,11 @@ class StoreData(CoreSysAttributes):
|
||||
addon_list = [
|
||||
addon
|
||||
for addon in path.glob("**/config.*")
|
||||
if not [part for part in addon.parts if part.startswith(".")]
|
||||
if not [
|
||||
part
|
||||
for part in addon.parts
|
||||
if part.startswith(".") or part == "rootfs"
|
||||
]
|
||||
and addon.suffix in FILE_SUFFIX_CONFIGURATION
|
||||
]
|
||||
except OSError as err:
|
||||
|
@ -15,6 +15,7 @@ def test_read_addon_files(coresys: CoreSys):
|
||||
Path("somepath/.git/config.yml"),
|
||||
Path("somepath/deeper_in_the_structure/.github/config.yml"),
|
||||
Path(".github/config.yml"),
|
||||
Path("some/rootfs/config.yml"),
|
||||
Path(".circleci/config.yml"),
|
||||
],
|
||||
):
|
||||
|
Loading…
x
Reference in New Issue
Block a user