We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d48d9b + d418391 commit c9241c9Copy full SHA for c9241c9
test/system/helpers.network.bash
@@ -427,6 +427,6 @@ function default_addr() {
427
local ip_ver="${1}"
428
local ifname="${2:-$(default_ifname "${ip_ver}")}"
429
430
- local expr='.[0] | .addr_info[0].local'
+ local expr='[.[0].addr_info[] | select(.deprecated != true)][0].local'
431
ip -j -"${ip_ver}" addr show "${ifname}" | jq -rM "${expr}"
432
}
0 commit comments