mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
[PR #10712/cb84fa74 backport][stable-11] remove extra brackets when params are a given by a comprehension (#10725)
remove extra brackets when params are a given by a comprehension (#10712)
* remove extra brackets when function params are a given by a comprehension
* add changelog frag
(cherry picked from commit cb84fa740a
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
f5ad2cee8d
commit
4d6f4c82e2
8 changed files with 16 additions and 9 deletions
|
@ -404,7 +404,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
|||
results['_meta']['hostvars'][iocage_name]['iocage_basejail'] = jail[9]
|
||||
|
||||
def get_properties(self, t_stdout, results, hostname):
|
||||
properties = dict([x.split(':', 1) for x in t_stdout.splitlines()])
|
||||
properties = dict(x.split(':', 1) for x in t_stdout.splitlines())
|
||||
results['_meta']['hostvars'][hostname]['iocage_properties'] = properties
|
||||
|
||||
def populate(self, results):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue