mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
[PR #11590/ce5d5622 backport][stable-12] replace list(map(...)) with comprehension (#11591)
replace `list(map(...))` with comprehension (#11590)
* replace `list(map(...))` with comprehension
* add changelog frag
(cherry picked from commit ce5d5622b9)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
@@ -268,7 +268,7 @@ class RecordManager:
|
||||
self.fqdn = module.params["record"]
|
||||
|
||||
if self.module.params["type"].lower() == "txt" and self.module.params["value"] is not None:
|
||||
self.value = list(map(self.txt_helper, self.module.params["value"]))
|
||||
self.value = [self.txt_helper(x) for x in self.module.params["value"]]
|
||||
else:
|
||||
self.value = self.module.params["value"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user