Code Review
/
pti
/
rtp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b9ba6bcbe7fd2cf3daddd8741ba9725736174da2
[pti/rtp.git]
/
meta-starlingx
/
meta-stx-integ
/
recipes-devtools
/
python
/
python-novaclient
/
nova-api-check.sh
1
#! /bin/bash
2
3
CMD="nova 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 \"nova api\" failed: "
11
echo $data
12
exit $res
13
fi
14
exit 0