mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
refactor dict from literal list (#10891)
* refactor dict from literal list * add changelog frag
This commit is contained in:
@@ -109,10 +109,7 @@ class SecretVariables(object):
|
||||
|
||||
@staticmethod
|
||||
def dict_to_list(source_dict):
|
||||
return [
|
||||
dict(key=var[0], value=var[1])
|
||||
for var in source_dict.items()
|
||||
]
|
||||
return [dict(key=k, value=v) for k, v in source_dict.items()]
|
||||
|
||||
@staticmethod
|
||||
def list_to_dict(source_list, hashed=False):
|
||||
|
||||
Reference in New Issue
Block a user