Browse Source

change to array for groups

master
HMSheets 3 years ago
parent
commit
9b12f44caa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      update-NebulaNodeCert

+ 1
- 1
update-NebulaNodeCert View File

@@ -35,7 +35,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters


NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name | sed 's/["]//g') 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') 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 Name: ${NODENAME}"
echo "Node IPs: ${NODEIPS}" echo "Node IPs: ${NODEIPS}"

Loading…
Cancel
Save