summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-09 02:48:37 +0000
committerDevaev Maxim <[email protected]>2018-07-09 02:48:37 +0000
commitdbe55ea591ba657168a809dd58a9aa0a80817dc3 (patch)
tree7ba9e2693248833527c47a6ebe89d0e49a640b08
parent47fdafb495362e082f71e6ccdab729f0281c2653 (diff)
msd: absolute real path
-rw-r--r--kvmd/kvmd/msd.py2
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,
**{