Alex | 4148552 | 2019-04-12 17:26:18 -0500 | [diff] [blame^] | 1 | {% macro package_list(pkg_dict, id_label) %} |
| 2 | {% for pkg_name in pkg_dict | get_sorted_keys %} |
| 3 | {% set p = pkg_dict[pkg_name] %} |
| 4 | {% for status in p['results'].keys() | sort(reverse=true) %} |
| 5 | {% for action in p['results'][status].keys() | sort(reverse=true) %} |
| 6 | {% for node in p['results'][status][action].keys() | sort %} |
| 7 | {% set nd = p['results'][status][action][node] %} |
| 8 | {{ id_label }},{{ pkg_name }},{{ node }},{{ status | make_status_label }},{{ action | make_action_label }},{{ nd['i'].version }},{{ nd['c'].version }},{{ p['r'].version }} |
| 9 | {% endfor %} |
| 10 | {% endfor %} |
| 11 | {% endfor %} |
| 12 | {% endfor %} |
| 13 | {{ caller() }} |
| 14 | {% endmacro %} |
| 15 | type,package_name,node,status,action,installed,candidate,release |
| 16 | {% call package_list(critical, "mirantis") %} |
| 17 | {% endcall %} |
| 18 | {% call package_list(system, "system") %} |
| 19 | {%- endcall %} |
| 20 | {% call package_list(other, "other") %} |
| 21 | {%- endcall %} |
| 22 | {% call package_list(unlisted, "unlisted") %} |
| 23 | {%- endcall %} |