virt-manager/virt-manager-nodedev-Improve-error-with-unknown-address-strings.patch
Jonathon Jongsma 9415bc6cca virt-manager-3.2.0-13.el9
- cli: --filesystem: add binary.sandbox.mode and source.socket (rhbz#2045932)
- nodedev: Improve error with unknown address strings (rhbz#2017840)

Resolves: rhbz#2017840, rhbz#2045932
2022-02-07 14:35:08 -06:00

33 lines
1.1 KiB
Diff

From 6cdb34eb04e17315cfc7ee7cf6538bc6370c8d8b Mon Sep 17 00:00:00 2001
From: Cole Robinson <crobinso@redhat.com>
Date: Tue, 11 Jan 2022 11:39:29 -0500
Subject: [PATCH] nodedev: Improve error with unknown address strings
Signed-off-by: Cole Robinson <crobinso@redhat.com>
(cherry picked from commit ed7b8769c4d48c89ed593138171bc8dbb1ead108)
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2017840
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
---
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