diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glanceclient/glance-api-check.sh')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-glanceclient/glance-api-check.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glanceclient/glance-api-check.sh b/meta-openstack/recipes-devtools/python/python-glanceclient/glance-api-check.sh new file mode 100644 index 0000000..aa8340a --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-glanceclient/glance-api-check.sh | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #! /bin/bash | ||
| 2 | |||
| 3 | CMD="glance image-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 \"glance api\" failed: " | ||
| 11 | echo $data | ||
| 12 | exit $res | ||
| 13 | fi | ||
| 14 | exit 0 | ||
