Use a single string with a placeholder for the path to avoid a string
puzzle.

Signed-off-by: Pino Toscano <[email protected]>
---
 virtManager/details/details.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/details/details.py b/virtManager/details/details.py
index 126018c7..c13f6805 100644
--- a/virtManager/details/details.py
+++ b/virtManager/details/details.py
@@ -240,7 +240,7 @@ def _label_for_device(dev):
     if devtype == "video":
         return _("Video %s") % vmmAddHardware.video_pretty_model(dev.model)
     if devtype == "filesystem":
-        return _("Filesystem") + (" %s" % dev.target[:8])
+        return _("Filesystem %(path)s") % {"path": dev.target[:8]}
     if devtype == "controller":
         return _("Controller %(controller)s %(index)d") % {
             "controller": vmmAddHardware.controller_pretty_desc(dev),
-- 
2.26.2

Reply via email to