% if not pd is UNDEFINED:
% if len(pd) > 0:
% for patch_id in sorted(pd.keys()):
${patchelem(patch_id)}
% endfor
% endif
% endif
% if not info is UNDEFINED or not warning is UNDEFINED or not error is UNDEFINED:
% if not info is UNDEFINED and len(info) > 0:
${info}
% endif
% if not warning is UNDEFINED and len(warning) > 0:
${warning}
% endif
% if not error is UNDEFINED and len(error) > 0:
${error}
% endif
% endif
<%def name="patchelem(patch_id)">\
<%p = pd[patch_id] %>\
${patch_id}
% if p["status"] != "":
${p["status"]}
% endif
% if p["sw_version"] != "":
${p["sw_version"]}
% endif
% if p["repostate"] != "":
${p["repostate"]}
% endif
% if p["patchstate"] != "":
${p["patchstate"]}
% endif
% if p["status"] != "":
${p["status"]}
% endif
% if p["unremovable"] != "":
${p["unremovable"]}
% endif
% if p["reboot_required"] != "":
${p["reboot_required"]}
% endif
% if p["summary"] != "":
${p["summary"]}
% endif
% if p["description"] != "":
${p["description"]}
% endif
% if p["install_instructions"] != "":
${p["install_instructions"]}
% endif
% if p["warnings"] != "":
${p["warnings"]}
% endif
% if "requires" in p and len(p["requires"]) > 0:
% for req in sorted(p["requires"]):
${req}
% endfor
% endif
%def>