This is similar to 405692ef, reverted in aeefb4cd.

Signed-off-by: Bernardo Dal Seno <[email protected]>
---
 qa/ganeti-qa.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/qa/ganeti-qa.py b/qa/ganeti-qa.py
index 7af9ff8..1d35baf 100755
--- a/qa/ganeti-qa.py
+++ b/qa/ganeti-qa.py
@@ -639,8 +639,9 @@ def RunQa():
   RunEnvTests()
   SetupCluster(rapi_user, rapi_secret)
 
-  # Load RAPI certificate
-  qa_rapi.Setup(rapi_user, rapi_secret)
+  if qa_rapi.Enabled():
+    # Load RAPI certificate
+    qa_rapi.Setup(rapi_user, rapi_secret)
 
   RunClusterTests()
   RunOsTests()
-- 
1.8.2.1

Reply via email to