Skip to content

Commit c9241c9

Browse files
Merge pull request #22777 from dgibson/deprecated-addr
test, pasta: Ignore deprecated addresses in tests
2 parents 3d48d9b + d418391 commit c9241c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/system/helpers.network.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,6 @@ function default_addr() {
427427
local ip_ver="${1}"
428428
local ifname="${2:-$(default_ifname "${ip_ver}")}"
429429

430-
local expr='.[0] | .addr_info[0].local'
430+
local expr='[.[0].addr_info[] | select(.deprecated != true)][0].local'
431431
ip -j -"${ip_ver}" addr show "${ifname}" | jq -rM "${expr}"
432432
}

0 commit comments

Comments
 (0)