TestRapiInstanceRename use instance name
authorGuido Trotter <ultrotter@google.com>
Fri, 18 Feb 2011 12:52:58 +0000 (12:52 +0000)
committerGuido Trotter <ultrotter@google.com>
Fri, 18 Feb 2011 15:58:24 +0000 (15:58 +0000)
Currently the QA rename job wrongly passed the whole info dict to the
client.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

qa/qa_rapi.py

index 3f46dda..6653ecc 100644 (file)
@@ -473,7 +473,7 @@ def TestRapiInstanceRename(rename_source, rename_target):
 
 def TestRapiInstanceReinstall(instance):
   """Test reinstalling an instance via RAPI"""
-  _WaitForRapiJob(_rapi_client.ReinstallInstance(instance))
+  _WaitForRapiJob(_rapi_client.ReinstallInstance(instance["name"]))
 
 
 def TestRapiInstanceModify(instance):