Reset the force patch audit flag after it is triggered
The force patch audit flag could be set, but never cleared.
This would result in patch audits being run during every audit
loop, as well as any derived audits such as software load.
This change ensures that the force flag is cleared when a
patch audit is invoked.
The force patch audit flag is used by other audits such as the
audit_load, so it needs to be reset after those evaluations.
Reviewed: https:/ /review. opendev. org/c/starlingx /distcloud/ +/791244 /opendev. org/starlingx/ distcloud/ commit/ 8d16d245504039b 7e59b5d7a083b3b 9d28b358e9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8d16d245504039b 7e59b5d7a083b3b 9d28b358e9
Author: albailey <email address hidden>
Date: Thu May 13 08:36:52 2021 -0500
Reset the force patch audit flag after it is triggered
The force patch audit flag could be set, but never cleared.
This would result in patch audits being run during every audit
loop, as well as any derived audits such as software load.
This change ensures that the force flag is cleared when a
patch audit is invoked.
The force patch audit flag is used by other audits such as the
audit_load, so it needs to be reset after those evaluations.
Change-Id: I833d157a616916 a9ee37553b1f4cf 3582caa8862
Closes-Bug: 1928333
Signed-off-by: albailey <email address hidden>