From 6cdb34eb04e17315cfc7ee7cf6538bc6370c8d8b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 11 Jan 2022 11:39:29 -0500 Subject: [PATCH] nodedev: Improve error with unknown address strings Signed-off-by: Cole Robinson (cherry picked from commit ed7b8769c4d48c89ed593138171bc8dbb1ead108) Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2017840 Signed-off-by: Jonathon Jongsma --- virtinst/nodedev.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtinst/nodedev.py b/virtinst/nodedev.py index 248723b9..f0bc769b 100644 --- a/virtinst/nodedev.py +++ b/virtinst/nodedev.py @@ -235,7 +235,8 @@ def _AddressStringToHostdev(conn, addrstr): hostdev.bus = bus hostdev.device = device else: - raise RuntimeError("Unknown address type") + raise RuntimeError( + "Unknown hostdev address string format '%s'" % addrstr) except Exception: log.debug("Error parsing node device string.", exc_info=True) raise -- 2.34.1