From dda05116e37a6aa5d023d79649475433c8edfa42 Mon Sep 17 00:00:00 2001 From: Jeff Odegard <42775175+JeffOdegard@users.noreply.github.com> Date: Thu, 8 Aug 2019 11:47:23 -0600 Subject: [PATCH] export-ckl Would Not Export SRGs Fixed export.ckl.php to export all but Orphan and Benchmark STIGs. It was not exporting SRGs (policy STIGs). --- exec/export-ckl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/export-ckl.php b/exec/export-ckl.php index 6c6e4f9..3250ccb 100644 --- a/exec/export-ckl.php +++ b/exec/export-ckl.php @@ -90,7 +90,7 @@ if ($tgt_count = count($tgts)) { print "Target: {$tgt->get_Name()}" . PHP_EOL; foreach ($tgt->checklists as $key => $chk) { - if ($chk->name == 'Orphan' || $chk->type != 'manual') { + if ($chk->name == 'Orphan' || $chk->type == 'benchmark') { unset($tgt->checklists[$key]); } }