Skip to content

Commit bd68a6e

Browse files
authored
Merge pull request #40361 from kmccarron-rh/fixUnapply
OSDOCS-3150: Add flag argument to the Unapply a remediation command
2 parents 25e2b71 + 981a6d3 commit bd68a6e

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)