Merge "base: remove redudant ip_to_convert"
[yardstick.git] / yardstick / benchmark / scenarios / availability / ha_tools / nova / delete_flavor.bash
1 #!/bin/bash
2
3 ##############################################################################
4 # (c) OPNFV, Yin Kanglin and others.
5 # 14_ykl@tongji.edu.cn
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 # delete a flavor
13 # parameter: $1 - flavor name/id
14
15 set -e
16
17 if [ $OS_INSECURE ] && [ "$(echo $OS_INSECURE | tr '[:upper:]' '[:lower:]')" = "true" ]; then
18     SECURE="--insecure"
19 else
20     SECURE=""
21 fi
22
23 openstack ${SECURE} flavor delete $1