diff options
author | Devaev Maxim <[email protected]> | 2018-07-09 02:48:37 +0000 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-09 02:48:37 +0000 |
commit | dbe55ea591ba657168a809dd58a9aa0a80817dc3 (patch) | |
tree | 7ba9e2693248833527c47a6ebe89d0e49a640b08 | |
parent | 47fdafb495362e082f71e6ccdab729f0281c2653 (diff) |
msd: absolute real path
-rw-r--r-- | kvmd/kvmd/msd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/kvmd/msd.py b/kvmd/kvmd/msd.py index 8dac6f50..5553e8f9 100644 --- a/kvmd/kvmd/msd.py +++ b/kvmd/kvmd/msd.py @@ -123,7 +123,7 @@ def explore_device(device_path: str) -> Optional[MassStorageDeviceInfo]: return MassStorageDeviceInfo( # type: ignore path=device_path, - real=(os.readlink(device_path) if os.path.islink(device_path) else device_path), + real=os.path.realpath(device_path), size=size, **disk_meta, **{ |