From b9461ffa94293b0c75a62f08fdb751dca1c3c6b0 Mon Sep 17 00:00:00 2001 From: Vratislav Podzimek Date: Tue, 21 Jul 2015 16:35:34 +0200 Subject: [PATCH 4/7] Only output the kickstart section with content and profile set There may be a default content used (e.g. the SCAP Security Guide) with no profile selected. Nothing related to the addon should appear in the resulting kickstart in such case. Resolves: rhbz#1241395 Signed-off-by: Vratislav Podzimek --- org_fedora_oscap/ks/oscap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org_fedora_oscap/ks/oscap.py b/org_fedora_oscap/ks/oscap.py index 1a185d5..8352236 100644 --- a/org_fedora_oscap/ks/oscap.py +++ b/org_fedora_oscap/ks/oscap.py @@ -110,7 +110,7 @@ class OSCAPdata(AddonData): """ - if self.dry_run: + if self.dry_run or not self.profile_id: # the addon was run in the dry run mode, omit it from the kickstart return "" -- 2.4.3