Merge "Re-define the framesize and flow dynamic define in testcase"
[yardstick.git] / yardstick / benchmark / scenarios / availability / ha_tools / nova / create_flavor.bash
index 5c2d6d7..7408409 100644 (file)
 
 set -e
 
-source /root/openrc
+if [ $OS_INSECURE ] && [ "$(echo $OS_INSECURE | tr '[:upper:]' '[:lower:]')" = "true" ]; then
+    SECURE="--insecure"
+else
+    SECURE=""
+fi
 
-nova flavor-create $1 $2 $3 $4 $5
+openstack ${SECURE} flavor create $1 --id $2 --ram $3 --disk $4 --vcpus $5