2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-22 15:48:14 +00:00

docs(fips): remove misleading generation order comment

This commit is contained in:
Vinícius Ferrão
2026-10-21 11:30:00 -03:00
parent 0b42cb5fd4
commit 88f8d3f92d
-3
View File
@@ -1336,9 +1336,6 @@ sub fips_policy_plan {
die "$relative must be a regular file\n" unless -f $path && !-l $path;
my $current = read_binary($path);
my $rendered = $current;
# A second block, or none, makes the insertion point ambiguous. Count
# before substituting: s///g on no match leaves the file unchanged and
# reads as current.
my $count = $rendered =~ s/\Q$begin\E.*?\Q$end\E/$block/sg;
die "$relative must contain one FIPS policy block\n"
unless $count == 1