diff options
author | Maxim Devaev <[email protected]> | 2022-04-10 06:00:10 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-04-10 06:00:10 +0300 |
commit | 486f1be9867fcb3220a2918ddd5b0371ece17d5d (patch) | |
tree | 22f6297f9a4755631c0aee3397980a8e2dde0d22 /kvmd/plugins/msd/otg/drive.py | |
parent | 122242ea472684434989706253bb38ad48a6cbd6 (diff) |
get rid of the otg-unlock helper
Diffstat (limited to 'kvmd/plugins/msd/otg/drive.py')
-rw-r--r-- | kvmd/plugins/msd/otg/drive.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/otg/drive.py b/kvmd/plugins/msd/otg/drive.py index ee54e5e9..11af7f81 100644 --- a/kvmd/plugins/msd/otg/drive.py +++ b/kvmd/plugins/msd/otg/drive.py @@ -53,7 +53,10 @@ class Drive: # ===== def set_image_path(self, path: str) -> None: - self.__set_param("file", path) + if path: + self.__set_param("file", path) + else: + self.__set_param("forced_eject", "") def get_image_path(self) -> str: return self.__get_param("file") |