Skip to content

Commit 8c34954

Browse files
Guiiixrustybird
andauthored
Update qubes/storage/__init__.py
Co-authored-by: Rusty Bird <[email protected]>
1 parent ac74511 commit 8c34954

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qubes/storage/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,7 @@ async def stop(self):
870870
for name, vol in self.vm.volumes.items()
871871
)
872872
for vol in self.vm.volumes.values():
873-
if os.path.exists(vol.state_file):
874-
os.unlink(vol.state_file)
873+
qubes.utils.remove_file(vol.state_file)
875874

876875
def unused_frontend(self):
877876
"""Find an unused device name"""

0 commit comments

Comments
 (0)