mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 16:32:56 +00:00
replace list(map(...)) with comprehension (#11590)
* replace `list(map(...))` with comprehension * add changelog frag
This commit is contained in:
parent
3194ed9d36
commit
ce5d5622b9
5 changed files with 51 additions and 52 deletions
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue