There is no point to translate an internal regular expression; worse, a wrong translation can break the regular expression. Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx> --- virtManager/lib/libvirtenummap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/virtManager/lib/libvirtenummap.py b/virtManager/lib/libvirtenummap.py index d88efe11..d68170d4 100644 --- a/virtManager/lib/libvirtenummap.py +++ b/virtManager/lib/libvirtenummap.py @@ -37,8 +37,7 @@ class _LibvirtEnumMap(object): # Regex map for 'state' values returned from lifecycle and other events _DETAIL1_PREFIX = { "VIR_DOMAIN_EVENT_ID_LIFECYCLE": "VIR_DOMAIN_EVENT_[^_]+$", - "VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE": _("VIR_CONNECT_DOMAIN_EVENT_AGENT" - "_LIFECYCLE_STATE_[^_]+$"), + "VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE": "VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_[^_]+$", "VIR_NETWORK_EVENT_ID_LIFECYCLE": "VIR_NETWORK_EVENT_[^_]+$", "VIR_STORAGE_POOL_EVENT_ID_LIFECYCLE": "VIR_STORAGE_POOL_EVENT_[^_]+$", "VIR_NODE_DEVICE_EVENT_ID_LIFECYCLE": "VIR_NODE_DEVICE_EVENT_[^_]+$", -- 2.26.2