From 6cf72b9e604fee2016ccc7095c122b40a3cee991 Mon Sep 17 00:00:00 2001 From: Karen McCarron Date: Fri, 7 Jan 2022 15:13:39 -0500 Subject: [PATCH] OSDOCS-3150: Add flag argument to unapply a remediation command --- modules/compliance-unapplying.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/compliance-unapplying.adoc b/modules/compliance-unapplying.adoc index f83f4367bc11..993f53771e19 100644 --- a/modules/compliance-unapplying.adoc +++ b/modules/compliance-unapplying.adoc @@ -7,11 +7,12 @@ It might be required to unapply a remediation that was previously applied. .Procedure -. Toggle the flag to `false`: +. Set the `apply` flag to `false`: + [source,terminal] ---- -$ oc patch complianceremediations/-sysctl-net-ipv4-conf-all-accept-redirects +$ oc patch complianceremediations/-sysctl-net-ipv4-conf-all-accept-redirects -p '{"spec":{"apply":false}}' --type=merge + ---- . The remediation status will change to `NotApplied` and the composite `MachineConfig` object would be re-rendered to not include the remediation.