mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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