aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2018-05-14 19:21:26 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-14 19:21:26 +0000
commiteda53aeaba3e7bbf8353142f97d29595ffa466c7 (patch)
tree142038a7d9a0bb8862be11b92852f6b0c26d13dd /kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh
parent492c9bb357f552276acc6299e273711b2e37a62a (diff)
parent83e5bdd5b2c733e219c53afb1b23eceee1243e31 (diff)
Merge "Config Changes in Consul"
Diffstat (limited to 'kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh')
-rwxr-xr-xkubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh b/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh
index a80a790377..e8135cb55c 100755
--- a/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh
+++ b/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh
@@ -1,4 +1,4 @@
-NAME=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "so-db[^[:space:]]*")
+NAME=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "[^[:space:]]*-so-db[^[:space:]]*")
if [ -n "$NAME" ]; then
if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $NAME -- bash -c 'mysqladmin status -u root -p$MYSQL_ROOT_PASSWORD' > /dev/null; then