Pārlūkot izejas kodu

testing sed strip on groups

master
HMSheets pirms 3 gadiem
vecāks
revīzija
9ed6547b81
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      update-NebulaNodeCert

+ 1
- 1
update-NebulaNodeCert Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt