diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinderclient/cinder-api-check.sh')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinderclient/cinder-api-check.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinderclient/cinder-api-check.sh b/meta-openstack/recipes-devtools/python/python-cinderclient/cinder-api-check.sh new file mode 100644 index 0000000..9e64f8b --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinderclient/cinder-api-check.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #! /bin/bash | ||
2 | |||
3 | CMD="cinder list" | ||
4 | |||
5 | data=$($CMD 2>&1) | ||
6 | res=$? | ||
7 | if [ ${res} -eq 127 ]; then | ||
8 | exit 0 | ||
9 | elif [ ${res} -ne 0 ]; then | ||
10 | echo "OpenStack \"cinder api\" failed: " | ||
11 | echo $data | ||
12 | exit $res | ||
13 | fi | ||
14 | exit 0 | ||