Revision e5c2accd qa/qa_rapi.py

b/qa/qa_rapi.py
402 402
  _WaitForRapiJob(_rapi_client.MigrateInstance(instance["name"]))
403 403

  
404 404

  
405
def TestRapiInstanceRename(instance, rename_target):
405
def TestRapiInstanceRename(rename_source, rename_target):
406 406
  """Test renaming instance via RAPI"""
407
  rename_source = instance["name"]
408

  
409
  for name1, name2 in [(rename_source, rename_target),
410
                       (rename_target, rename_source)]:
411
    _WaitForRapiJob(_rapi_client.RenameInstance(name1, name2))
407
  _WaitForRapiJob(_rapi_client.RenameInstance(rename_source, rename_target))
412 408

  
413 409

  
414 410
def TestRapiInstanceModify(instance):

Also available in: Unified diff