瀏覽代碼

change to array for groups

master
HMSheets 3 年之前
父節點
當前提交
9b12f44caa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      update-NebulaNodeCert

+ 1
- 1
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}"

Loading…
取消
儲存