Use a separate string in case it has an associated device to avoid a string puzzle. Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx> --- virtManager/details/details.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/virtManager/details/details.py b/virtManager/details/details.py index 6911a0bd..dcc8a370 100644 --- a/virtManager/details/details.py +++ b/virtManager/details/details.py @@ -243,10 +243,9 @@ def _label_for_device(dev): return _("Controller") + (" %s %s" % ( vmmAddHardware.controller_pretty_desc(dev), dev.index)) if devtype == "rng": - label = _("RNG") if dev.device: - label += (" %s" % dev.device) - return label + return _("RNG %(device)s") % {"device": dev.device} + return _("RNG") if devtype == "tpm": label = _("TPM") if dev.device_path: -- 2.26.2