mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-08 17:56:33 +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)
|
||||
except MountNotFound:
|
||||
_LOGGER.warning("Can't find mount %s for fixup", reference)
|
||||
else:
|
||||
self.sys_mounts.save_data()
|
||||
|
||||
@property
|
||||
def suggestion(self) -> SuggestionType:
|
||||
|
@ -50,3 +50,4 @@ async def test_fixup(
|
||||
assert systemd_service.StopUnit.calls == [
|
||||
("mnt-data-supervisor-mounts-test.mount", "fail")
|
||||
]
|
||||
coresys.mounts.save_data.assert_called_once()
|
||||
|
Loading…
x
Reference in New Issue
Block a user