mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-03 23:09:09 -07:00
use dict comprehension in plugins, part 2 (#8822)
* use dict comprehension in plugins * add changelog frag
This commit is contained in:
parent
ecc048bc12
commit
7e978c77b4
21 changed files with 76 additions and 68 deletions
|
@ -446,7 +446,7 @@ def main():
|
|||
|
||||
params = module.params
|
||||
|
||||
commands = dict((key, params[key]) for key in command_keys if params[key])
|
||||
commands = {key: params[key] for key in command_keys if params[key]}
|
||||
|
||||
# Ensure ufw is available
|
||||
ufw_bin = module.get_bin_path('ufw', True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue