community.general/plugins
patchback[bot] d9d9148510
[PR #8970/8610223d backport][stable-8] dig lookup plugin: Fix using only last nameserver specified (#8985)
dig lookup plugin: Fix using only last nameserver specified (#8970)

* dig plugin: Fix using only last nameserver given

Currently, when specifying multiple nameservers
either using multiple `@ns.example.com` arguments
or by specifying multiple nameservers in a single
argument (@ns1.example.com,ns2.example.com), due
to a bug only the very last nameserver that is
specified is actually used.
This is because for every iteration of the
    for ns in nsset
loop, the local list of nameservers is cleared
and after adding the currently processed nameserver
entry, the whole `nameservers` list of the Resolver
instance is overridden with that new list with just
one element. And as far as I can see, when setting
that `nameserver` property, the dnspython library
actually overrides the existing list and doesn't
do some trickery to append the new nameservers or
something like that.

Therefore, the assignment of the `nameservers`
property of the Resolver is moved after the argument
processing so all nameservers are added and then
collectively written to the `nameservers` property
of the Resolver.

* Add CHANGELOG fragment

(cherry picked from commit 8610223d03)

Co-authored-by: JaegerMaKn <max.jaeger@knauf.com>
2024-10-05 15:17:12 +02:00
..
action [stable-8] Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8723) 2024-08-07 16:03:43 +02:00
become machinectl become plugin: mark as require_tty (#6935) 2023-07-15 12:53:59 +02:00
cache Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
callback [stable-8] Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8723) 2024-08-07 16:03:43 +02:00
connection [PR #7873/13e3161f backport][stable-8] Refer to LXD containers/VMs as instances (#7891) 2024-01-24 19:49:01 +01:00
doc_fragments [PR #7897/afd19888 backport][stable-8] Consul action group (#7905) 2024-01-27 12:21:34 +01:00
filter [PR #8475/8f60f3ae backport][stable-8] Update docs lists_mergeby (#8494) 2024-06-13 07:47:59 +02:00
inventory [PR #8794/249126f4 backport][stable-8] proxmox inventory: fixing possible concatenation error (#8816) 2024-09-01 20:52:53 +02:00
lookup [PR #8970/8610223d backport][stable-8] dig lookup plugin: Fix using only last nameserver specified (#8985) 2024-10-05 15:17:12 +02:00
module_utils [stable-8] Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8723) 2024-08-07 16:03:43 +02:00
modules [PR #8812/5d9a7ab2 backport][stable-8] keycloak_user_federation: remove lastSync param from kc API responses (#8976) 2024-10-03 16:12:53 +03:00
plugin_utils [PR #8225/7fd37ea2 backport][stable-8] inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8246) 2024-04-20 10:20:32 +02:00
test [PR #7533/2a5e7c33 backport][stable-8] Add test fqdn_valid (#7567) 2023-11-22 09:26:17 +01:00