Code Review
/
pti
/
rtp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
meta-stx: re-name and re-org to align with upstream
[pti/rtp.git]
/
meta-starlingx
/
meta-stx-integ
/
recipes-devtools
/
python
/
python-novaclient
/
nova-api-check.sh
diff --git a/meta-starlingx/meta-stx-integ/recipes-devtools/python/python-novaclient/nova-api-check.sh
b/meta-starlingx/meta-stx-integ/recipes-devtools/python/python-novaclient/nova-api-check.sh
new file mode 100644
(file)
index 0000000..
b9ba6bc
--- /dev/null
+++ b/
meta-starlingx/meta-stx-integ/recipes-devtools/python/python-novaclient/nova-api-check.sh
@@ -0,0
+1,14
@@
+#! /bin/bash
+
+CMD="nova list"
+
+data=$($CMD 2>&1)
+res=$?
+if [ ${res} -eq 127 ]; then
+ exit 0
+elif [ ${res} -ne 0 ]; then
+ echo "OpenStack \"nova api\" failed: "
+ echo $data
+ exit $res
+fi
+exit 0