X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fpython%2Fpython-novaclient%2Fnova-api-check.sh;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fpython%2Fpython-novaclient%2Fnova-api-check.sh;h=b9ba6bcbe7fd2cf3daddd8741ba9725736174da2;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=0000000000000000000000000000000000000000;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git 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 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