Change importing of Ansible's nth-host function
Since bump of Ansible to v5.9.0
(https://github.com/openshift-metal3/dev-scripts/pull/1407) we no longer
have the function
``ansible_collections.ansible.netcommon.plugins.filter.ipaddr`` but rather
it's placed at
``ansible_collections.ansible.utils.plugins.filter.nthhost``.
@@ -153,7 +153,7 @@ function nth_ip() {
network=$1
idx=$2
- python -c "from ansible_collections.ansible.netcommon.plugins.filter import ipaddr; print(ipaddr.nthhost('"$network"', $idx))"
+ python -c "from ansible_collections.ansible.utils.plugins.filter import nthhost; print(nthhost.nthhost('"$network"', $idx))"
}
function retry() {
