Fix qubes.storage.file _remove_if_exists

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-06-21 16:30:37 +02:00
parent 12745a4860
commit 4db84c42a6
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -513,7 +513,7 @@ def _reset_volume(volume):
assert volume.size
_remove_if_exists(volume)
_remove_if_exists(volume.path)
with open(volume.path, "w") as f_volatile:
f_volatile.truncate(volume.size)