removing - symbol before processing name resolving

This commit is contained in:
2022-12-19 12:46:45 +00:00
parent 52a5dd2502
commit 05b8c68c3b

View File

@@ -33,7 +33,7 @@ name_resolver() {
for D in $(echo $DNS);
do
D=$(echo $D | cut -d "-" -f1)
UP=$(docker ps --format '{{.Names}}\t{{.Status}}' | grep Up | awk '{print $1}' | grep $D"-") ;
# filtering for ROLES variables if exists.
if [[ "$ROLES" != "null" && ! -z "$ROLES" ]]; then