Having more context in errors makes debugging easier.
---
v2v/rhv-upload-plugin.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
index 24944005..146522fe 100644
--- a/v2v/rhv-upload-plugin.py
+++ b/v2v/rhv-upload-plugin.py
@@ -579,6 +579,7 @@ def create_disk(connection):
if disk.status == types.DiskStatus.OK:
break
if time.time() > endt:
- raise RuntimeError("timed out waiting for disk to become
unlocked")
+ raise RuntimeError(
+ "timed out waiting for disk %s to become unlocked" % disk.id)
return disk
--
2.21.0