diff --git a/qa/ganeti-qa.py b/qa/ganeti-qa.py
index 019bcd6fdce1adbe52362b602b20fa10fbe2ddbd..8918a974a8f40eb1da265512b3e0aca2805c1977 100755
--- a/qa/ganeti-qa.py
+++ b/qa/ganeti-qa.py
@@ -215,13 +215,16 @@ def RunCommonInstanceTests(instance):
     RunTest(qa_instance.TestInstanceShutdown, instance)
     # perform instance rename to the same name
     RunTest(qa_instance.TestInstanceRename, rename_source, rename_source)
-    RunTestIf("rapi", qa_rapi.TestRapiInstanceRename, rename_source, rename_source)
+    RunTestIf("rapi", qa_rapi.TestRapiInstanceRename,
+              rename_source, rename_source)
     if rename_target is not None:
       # perform instance rename to a different name, if we have one configured
       RunTest(qa_instance.TestInstanceRename, rename_source, rename_target)
       RunTest(qa_instance.TestInstanceRename, rename_target, rename_source)
-      RunTestIf("rapi", qa_rapi.TestRapiInstanceRename, rename_source, rename_target)
-      RunTestIf("rapi", qa_rapi.TestRapiInstanceRename, rename_target, rename_source)
+      RunTestIf("rapi", qa_rapi.TestRapiInstanceRename,
+                rename_source, rename_target)
+      RunTestIf("rapi", qa_rapi.TestRapiInstanceRename,
+                rename_target, rename_source)
     RunTest(qa_instance.TestInstanceStartup, instance)
 
   RunTestIf("tags", qa_tags.TestInstanceTags, instance)