Merge "Re-define the framesize and flow dynamic define in testcase"
[yardstick.git] / yardstick / benchmark / scenarios / availability / ha_tools / nova / create_flavor.bash
index 8737836..7408409 100644 (file)
 
 set -e
 
-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=""
 fi
 
-openstack "${SECURE}" flavor create $1 --id $2 --ram $3 --disk $4 --vcpus $5
+openstack ${SECURE} flavor create $1 --id $2 --ram $3 --disk $4 --vcpus $5