summaryrefslogtreecommitdiff
path: root/docker/heat/heat-api/check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/heat/heat-api/check.sh')
-rwxr-xr-xdocker/heat/heat-api/check.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/docker/heat/heat-api/check.sh b/docker/heat/heat-api/check.sh
new file mode 100755
index 000000000..eab8ee59b
--- /dev/null
+++ b/docker/heat/heat-api/check.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+RES=0
+
+. /openrc
+if ! keystone token-get > /dev/null; then
+ echo "ERROR: keystone token-get failed" >&2
+ RES=1
+else
+ if ! heat stack-list > /dev/null; then
+ echo "ERROR: heat stack-list failed" >&2
+ RES=1
+ fi
+fi
+
+exit $RES