Blame SOURCES/0054-rhv-upload-Show-transfer-id-in-error-message.patch

5ce0c7
From 8659766f3559177edf60f7ed6e1ed834f5d4d4a0 Mon Sep 17 00:00:00 2001
46b2f6
From: Nir Soffer <nirsof@gmail.com>
46b2f6
Date: Mon, 18 Nov 2019 23:53:46 +0200
46b2f6
Subject: [PATCH] rhv-upload: Show transfer id in error message
46b2f6
46b2f6
(cherry picked from commit d4ca9b6ca42d4ad3c717f5c59402ca6ff5d322bb
46b2f6
in virt-v2v)
46b2f6
---
46b2f6
 v2v/rhv-upload-plugin.py | 6 ++++--
46b2f6
 1 file changed, 4 insertions(+), 2 deletions(-)
46b2f6
46b2f6
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
46b2f6
index f13405df1..9b83d1cfa 100644
46b2f6
--- a/v2v/rhv-upload-plugin.py
46b2f6
+++ b/v2v/rhv-upload-plugin.py
46b2f6
@@ -194,8 +194,10 @@ def open(readonly):
46b2f6
         if transfer.phase != types.ImageTransferPhase.INITIALIZING:
46b2f6
             break
46b2f6
         if time.time() > endt:
46b2f6
-            raise RuntimeError("timed out waiting for transfer status "
46b2f6
-                               "!= INITIALIZING")
46b2f6
+            raise RuntimeError(
46b2f6
+                "timed out waiting for transfer %s status != INITIALIZING"
46b2f6
+                % transfer.id)
46b2f6
+
46b2f6
         time.sleep(1)
46b2f6
 
46b2f6
     # Now we have permission to start the transfer.
46b2f6
-- 
5ce0c7
2.18.4
46b2f6