Skip to content

Commit 981a6d3

Browse files
committed
OSDOCS-3150: Add flag argument to unapply a remediation command
1 parent b478171 commit 981a6d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/compliance-unapplying.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
It might be required to unapply a remediation that was previously applied.
88

99
.Procedure
10-
. Toggle the flag to `false`:
10+
. Set the `apply` flag to `false`:
1111
+
1212
[source,terminal]
1313
----
14-
$ oc patch complianceremediations/<scan_name>-sysctl-net-ipv4-conf-all-accept-redirects
14+
$ oc patch complianceremediations/<scan_name>-sysctl-net-ipv4-conf-all-accept-redirects -p '{"spec":{"apply":false}}' --type=merge
15+
1516
----
1617

1718
. The remediation status will change to `NotApplied` and the composite `MachineConfig` object would be re-rendered to not include the remediation.

0 commit comments

Comments
 (0)