File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ _testDockerNetwork() {
81
81
}
82
82
83
83
_testDockerCassandra () {
84
- dockerPs=$( docker ps -a | awk ' {if ($NF == "' ${DOCKER_CASS} ' ") {print "yes"}}' )
84
+ dockerPs=$( docker ps --all --filter " name= ${DOCKER_CASS} " --format " {{.Status}} " | awk ' {if ($1 == "Up ") {print "yes"}}' )
85
85
if [ " $dockerPs " != " yes" ]; then
86
86
echo " no"
87
87
return
@@ -154,7 +154,7 @@ _dropKeyspaces() {
154
154
}
155
155
156
156
_testDockerCDM () {
157
- dockerPs=$( docker ps -a | awk ' {if ($NF == "' ${DOCKER_CDM} ' ") {print "yes"}}' )
157
+ dockerPs=$( docker ps --all --filter " name= ${DOCKER_CDM} " --format " {{.Status}} " | awk ' {if ($1 == "Up ") {print "yes"}}' )
158
158
if [ " $dockerPs " != " yes" ]; then
159
159
echo " no"
160
160
else
@@ -278,7 +278,7 @@ _Validate() {
278
278
fi
279
279
280
280
if [ " $( _testDockerCassandra) " == " yes" ]; then
281
- _info " Cassandra Docker is valid"
281
+ _info " Cassandra Docker is valid and running "
282
282
else
283
283
_warn " Cassandra Docker is invalid"
284
284
invalid=1
@@ -292,7 +292,7 @@ _Validate() {
292
292
fi
293
293
294
294
if [ " $( _testDockerCDM) " == " yes" ]; then
295
- _info " CDM Docker is valid"
295
+ _info " CDM Docker is valid and running "
296
296
else
297
297
_warn " CDM Docker is invalid"
298
298
invalid=1
You can’t perform that action at this time.
0 commit comments