local prim=$($LCTL list_nids | head -n 1)
- if ! grep -q -- "- primary nid: $prim"<<<"${found}"; then
+ if ! grep -q -- " primary nid: $prim"<<<"${found}"; then
echo "$found"
error "Wrong primary nid"
fi
declare -a net_prios
declare -a nid_prios
- nids=( $($LNETCTL ${type} show -v 5 | awk '/- nid:/{print $NF}' |
+ nids=( $($LNETCTL ${type} show -v 5 | awk '/-\s+nid:/{print $NF}' |
xargs echo) )
net_prios=( $($LNETCTL ${type} show -v 5 |