Al Bailey be09ccc584 Fork cgcs-patch package as sw-patch for Debian
The original cgcs-patch is rpm based which requires a
complete re-write to work on ostree/dpkg systems like Debian.

The code has been forked, since the older Centos env and
python2.7 are end-of-life.

Forking the code allows all new development to not
require re-testing on Centos.

The debian folder under cgcs-patch has been moved
under sw-patch

Renaming and refactoring will be done in later commits.

pylint is un-clamped in order to work on python3.9
Some minor pylint suppressions have been added.

Test Plan:
 Verify that this builds on Debian
 Verify that the ISO installs the new content on Debian without
breaking packages that import cgcs_patch.
 Verify patching service runs on Debian

Co-Authored-By: Jessica Castelino <jessica.castelino@windriver.com>
Story: 2009101
Task: 43076
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I3f1bca749404053bae63d4bcc9fb2477cf909fcd
2022-03-29 20:35:14 +00:00

33 lines
715 B
HTML

<br>
<table border="2" style="width:300px">
<tr>
<th>Hostname</th>
<th>IP</th>
<th>Patch Patch?</th>
<th>Requires Reboot</th>
<th>Time since last ack</th>
</tr>
% for agent in data:
${agentrow(agent)}
% endfor
</table>
<br><br>
<a href="/patch/query">Show all</a><br>
<a href="/patch/query?show=applied">Show applied</a><br>
<a href="/patch/query?show=available">Show available</a><br>
<%def name="agentrow(agent)">
<tr>
<td>${agent["ip"]}</td>
<td>${agent["hostname"]}</td>
<td>${agent["patch_current"]}</td>
<td>${agent["requires_reboot"]}</td>
<td>${agent["secs_since_ack"]}</td>
</tr>
</%def>