Use tripleo.collect_logs.flatten_nested_dict
Reference the plugin module by FQCN, so that it can be consumed when installed via ansible galaxy Depends-on: https://review.opendev.org/901550 Change-Id: I83f44a2ecd8bf1634d8dc580479c6de13dfe5ff7 Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
parent
910efeb558
commit
96117d5980
@ -25,7 +25,7 @@
|
|||||||
combined_cmds: "{{ artcl_commands | combine(artcl_commands_extras, recursive=True) }}"
|
combined_cmds: "{{ artcl_commands | combine(artcl_commands_extras, recursive=True) }}"
|
||||||
# combines default dictionary with user defined one
|
# combines default dictionary with user defined one
|
||||||
# keeps only commands from groups mentioned in collect_log_types
|
# keeps only commands from groups mentioned in collect_log_types
|
||||||
flatten_nested_dict:
|
tripleo.collect_logs.flatten_nested_dict:
|
||||||
data: "{{ combined_cmds | dict2items|selectattr('key', 'in', collect_log_types) | list | items2dict }}"
|
data: "{{ combined_cmds | dict2items|selectattr('key', 'in', collect_log_types) | list | items2dict }}"
|
||||||
register: artcl_commands_flatten
|
register: artcl_commands_flatten
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user