mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-09 10:16:29 +00:00
Call save data after removing mount in fixup (#4620)
This commit is contained in:
parent
994c981228
commit
1827ecda65
@ -24,6 +24,8 @@ class FixupMountExecuteRemove(FixupBase):
|
|||||||
await self.sys_mounts.remove_mount(reference)
|
await self.sys_mounts.remove_mount(reference)
|
||||||
except MountNotFound:
|
except MountNotFound:
|
||||||
_LOGGER.warning("Can't find mount %s for fixup", reference)
|
_LOGGER.warning("Can't find mount %s for fixup", reference)
|
||||||
|
else:
|
||||||
|
self.sys_mounts.save_data()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def suggestion(self) -> SuggestionType:
|
def suggestion(self) -> SuggestionType:
|
||||||
|
@ -50,3 +50,4 @@ async def test_fixup(
|
|||||||
assert systemd_service.StopUnit.calls == [
|
assert systemd_service.StopUnit.calls == [
|
||||||
("mnt-data-supervisor-mounts-test.mount", "fail")
|
("mnt-data-supervisor-mounts-test.mount", "fail")
|
||||||
]
|
]
|
||||||
|
coresys.mounts.save_data.assert_called_once()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user