blob: 9e64f8b543d3943bb24709b5120ad7ae357936d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /bin/bash
CMD="cinder list"
data=$($CMD 2>&1)
res=$?
if [ ${res} -eq 127 ]; then
exit 0
elif [ ${res} -ne 0 ]; then
echo "OpenStack \"cinder api\" failed: "
echo $data
exit $res
fi
exit 0
|