summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinderclient/cinder-api-check.sh
diff options
context:
space:
mode:
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.sh14
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
3CMD="cinder list"
4
5data=$($CMD 2>&1)
6res=$?
7if [ ${res} -eq 127 ]; then
8 exit 0
9elif [ ${res} -ne 0 ]; then
10 echo "OpenStack \"cinder api\" failed: "
11 echo $data
12 exit $res
13fi
14exit 0