Sfoglia il codice sorgente

testing var array for groups

master
HMSheets 3 anni fa
parent
commit
1169e13297
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      update-NebulaNodeCert

+ 1
- 1
update-NebulaNodeCert Vedi File

@@ -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}"

Caricamento…
Annulla
Salva