Merge "Use "OS_INSECURE" variable as the insecure mode indicator"
[yardstick.git] / tests / ci / load_images.sh
index 8e0a2f6..c2ae4fe 100755 (executable)
@@ -258,7 +258,7 @@ main()
         RAW_IMAGE='/home/opnfv/images/yardstick-image.tar.gz'
     fi
 
-    if [ $OS_CACERT ] && [ "$(echo $OS_CACERT | tr '[:upper:]' '[:lower:]')" = "false" ]; then
+    if [ $OS_INSECURE ] && [ "$(echo $OS_INSECURE | tr '[:upper:]' '[:lower:]')" = "true" ]; then
         SECURE="--insecure"
     else
         SECURE=""