7e4a503092
These xml files should not have execute bit Change-Id: I0a74ebd30004dd5fe9c6a104b2359457d7489e12 Signed-off-by: Saul Wold <sgw@linux.intel.com>
75 lines
1.9 KiB
XML
75 lines
1.9 KiB
XML
% if not data is UNDEFINED and len(data) > 0:
|
|
<data>
|
|
% for host in data:
|
|
${hostelem(host)}
|
|
% endfor
|
|
</data>
|
|
% endif
|
|
<%def name="hostelem(host)">\
|
|
<%h = host %>\
|
|
<host>
|
|
<hostname>
|
|
% if h["hostname"] != "":
|
|
${h["hostname"]}
|
|
% endif
|
|
</hostname>
|
|
<requires_reboot>
|
|
% if h["requires_reboot"] != "":
|
|
${h["requires_reboot"]}
|
|
% endif
|
|
</requires_reboot>
|
|
<nodetype>
|
|
% if h["nodetype"] != "":
|
|
${h["nodetype"]}
|
|
% endif
|
|
</nodetype>
|
|
<ip>
|
|
% if h["ip"] != "":
|
|
${h["ip"]}
|
|
% endif
|
|
</ip>
|
|
<missing_pkgs>
|
|
% if "missing_pkgs" in h and len(h["missing_pkgs"]) > 0:
|
|
% for pkg in sorted(h["missing_pkgs"]):
|
|
<pkg>${pkg}</pkg>
|
|
% endfor
|
|
% endif
|
|
</missing_pkgs>
|
|
<installed>
|
|
% if "installed" in h and len(h["installed"]) > 0:
|
|
% for pkg in sorted(h["installed"]):
|
|
<pkg>
|
|
<name>${pkg}</name>
|
|
<pkgname>${h["installed"][pkg]}</pkgname>
|
|
</pkg>
|
|
% endfor
|
|
% endif
|
|
</installed>
|
|
<to_remove>
|
|
% if "to_remove" in h and len(h["to_remove"]) > 0:
|
|
% for pkg in sorted(h["to_remove"]):
|
|
<pkg>${pkg}</pkg>
|
|
% endfor
|
|
% endif
|
|
</to_remove>
|
|
<secs_since_ack>
|
|
% if h["secs_since_ack"] != "":
|
|
${h["secs_since_ack"]}
|
|
% endif
|
|
</secs_since_ack>
|
|
<patch_failed>
|
|
% if h["patch_failed"] != "":
|
|
${h["patch_failed"]}
|
|
% endif
|
|
</patch_failed>
|
|
<stale_details>
|
|
% if h["stale_details"] != "":
|
|
${h["stale_details"]}
|
|
% endif
|
|
</stale_details>
|
|
<patch_current>
|
|
% if h["patch_current"] != "":
|
|
${h["patch_current"]}
|
|
% endif
|
|
</patch_current>
|
|
</host></%def> |