community.general/plugins
patchback[bot] d4c29e19c0
[PR #8970/8610223d backport][stable-9] dig lookup plugin: Fix using only last nameserver specified (#8986)
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:17 +02:00
..
action [PR #8720/9a16eaf9 backport][stable-9] Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8722) 2024-08-07 15:49:06 +02:00
become [PR #8623/a24ee93f backport][stable-9] Type options of become plugins (#8659) 2024-07-21 22:15:40 +02:00
cache [PR #8833/26df6c76 backport][stable-9] use dict comprehension in plugins, part 3 (#8835) 2024-09-08 14:46:13 +02:00
callback [PR #8741/73b54139 backport][stable-9] fix(opentelemetry): adjust default value for `store_spans_in_file` causing traces to be produced to a file named `None` (#8751) 2024-08-12 08:06:22 +02:00
connection [PR #8627/ce65eb87 backport][stable-9] Type options of connection plugins (#8662) 2024-07-21 22:16:12 +02:00
doc_fragments [PR #8859/e4472b32 backport][stable-9] pipx/pipx_info: refactor doc fragment (#8869) 2024-09-14 09:38:19 +02:00
filter [PR #8814/ecc048bc backport][stable-9] Use dict comprehension in plugins (#8819) 2024-09-01 20:55:02 +02:00
inventory [PR #8917/89ad40db backport][stable-9] proxmox inventory: remove duplicated credentials line (#8919) 2024-09-25 14:01:03 +03:00
lookup [PR #8970/8610223d backport][stable-9] dig lookup plugin: Fix using only last nameserver specified (#8986) 2024-10-05 15:17:17 +02:00
module_utils [PR #8944/a7d1b0fc backport][stable-9] python_runner/django_command: bugfixes (#8946) 2024-09-30 17:41:21 +03:00
modules [PR #8908/e7ccbc2f backport][stable-9] Add gitlab group params (#8981) 2024-10-04 09:19:24 +02:00
plugin_utils [PR #8814/ecc048bc backport][stable-9] Use dict comprehension in plugins (#8819) 2024-09-01 20:55:02 +02:00
test [PR #8595/8990f97b backport][stable-9] New Plugins #8594 (#8618) 2024-07-13 14:19:14 +02:00