Call save data after removing mount in fixup (#4620)

This commit is contained in:
Mike Degatano 2023-10-11 12:18:30 -04:00 committed by GitHub
parent 994c981228
commit 1827ecda65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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:

View File

@ -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()