Fix calling wrong variable name in gnocchi

Checking test_version seems right. test_mimic is not existing.

Change-Id: I2cbfed0f7da0b22eb753ed7bce833872a7ff707f
Signed-off-by: Deokjin Kim <deokjin81.kim@samsung.com>
This commit is contained in:
Deokjin Kim 2019-01-30 17:52:18 +09:00 committed by Deokjin Kim
parent c3a8063fdb
commit cbb9ec0748
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ ceph -s
function ensure_pool () {
ceph osd pool stats $1 || ceph osd pool create $1 $2
local test_version=$(ceph tell osd.* version | egrep -c "mimic|luminous" | xargs echo)
if [[ ${test_mimic} -gt 0 ]]; then
if [[ ${test_version} -gt 0 ]]; then
ceph osd pool application enable $1 $3
fi
}