aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystoneclient/keystone-api-check.sh
blob: aba6d5f461f7fdfd406312bd421a7bc085ca362a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

CMD="keystone endpoint-list"

data=$($CMD 2>&1)
res=$?
if [ ${res} -eq 127 ]; then
    exit 0
elif [ ${res} -ne 0 ]; then
    echo "OpenStack \"keystone api\" failed: "
    echo $data
    exit $res
fi
exit 0