[Libguestfs] [PATCH v2 07/11] rhv-upload: Show transfer id in error message

Nir Soffer nirsof at gmail.com
Mon Nov 18 21:53:46 UTC 2019


---
 v2v/rhv-upload-plugin.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
index c88c6990..54f44b05 100644
--- a/v2v/rhv-upload-plugin.py
+++ b/v2v/rhv-upload-plugin.py
@@ -589,8 +589,10 @@ def create_transfer(connection, disk, host):
             break
         if time.time() > endt:
             transfer_service.cancel()
-            raise RuntimeError("timed out waiting for transfer status "
-                               "!= INITIALIZING")
+            raise RuntimeError(
+                "timed out waiting for transfer %s status != INITIALIZING"
+                % transfer.id)
+
         time.sleep(1)
 
     return transfer
-- 
2.21.0





More information about the Libguestfs mailing list