Blob Blame History Raw
From bdd43cf791634bd1be3375263fd6dc956a6fda13 Mon Sep 17 00:00:00 2001
From: Vratislav Podzimek <vpodzime@redhat.com>
Date: Mon, 6 Jul 2015 13:01:36 +0200
Subject: [PATCH 5/9] Improve the description of the default profile (#1238080)

The default profile usually contains no rules so we should reflect that in its
description.

Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
---
 org_fedora_oscap/content_handling.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/org_fedora_oscap/content_handling.py b/org_fedora_oscap/content_handling.py
index 5f90f64..8621428 100644
--- a/org_fedora_oscap/content_handling.py
+++ b/org_fedora_oscap/content_handling.py
@@ -269,7 +269,8 @@ class DataStreamHandler(object):
             raise DataStreamHandlingError(OSCAP.oscap_err_desc())
 
         # will hold items for the profiles for the speficied DS and checklist
-        profiles = [ProfileInfo("default", "Default", "The default profile")]
+        profiles = [ProfileInfo("default", "Default",
+                                "The implicit XCCDF profile. Usually, the default contains no rules.")]
 
         # get the benchmark (checklist)
         policy_model = OSCAP.xccdf_session_get_policy_model(self._session)
@@ -317,7 +318,7 @@ class BenchmarkHandler(object):
 
         # stores a list of profiles in the benchmark
         self._profiles = [ProfileInfo("default", "Default",
-                                      "The default profile")]
+                                      "The implicit XCCDF profile. Usually, the default contains no rules.")]
 
         session = OSCAP.xccdf_session_new(xccdf_file_path)
         if not session:
-- 
2.4.3