From 9b12f44caac2f00d513a06d6a62e5b2c087a1a9b Mon Sep 17 00:00:00 2001 From: hms Date: Wed, 3 Feb 2021 14:51:50 -0800 Subject: [PATCH] change to array for groups --- update-NebulaNodeCert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-NebulaNodeCert b/update-NebulaNodeCert index 9409559..f4a3e89 100644 --- a/update-NebulaNodeCert +++ b/update-NebulaNodeCert @@ -35,7 +35,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name | sed 's/["]//g') NODEIPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.ips | sed 's/[]["]//g') -NODEGROUPS=($(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.groups | sed 's/[]["]//g' | sed 's/./ /g')) +NODEGROUPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.groups | sed 's/[]["]//g' | sed 's/./ /g') echo "Node Name: ${NODENAME}" echo "Node IPs: ${NODEIPS}"