From: Ondrej Lichtner <olichtne(a)redhat.com>
Base sub configuration header creation should be part of the
BaseSubConfigMixin class not the BaseEnrtRecipe class.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Recipes/ENRT/BaseEnrtRecipe.py | 3 ---
lnst/Recipes/ENRT/ConfigMixins/BaseSubConfigMixin.py | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/lnst/Recipes/ENRT/BaseEnrtRecipe.py b/lnst/Recipes/ENRT/BaseEnrtRecipe.py
index 85f5ee4..a90c837 100644
--- a/lnst/Recipes/ENRT/BaseEnrtRecipe.py
+++ b/lnst/Recipes/ENRT/BaseEnrtRecipe.py
@@ -92,9 +92,6 @@ class BaseEnrtRecipe(BaseSubConfigMixin, PingTestAndEvaluate,
PerfRecipe):
description = self.generate_sub_configuration_description(config)
self.add_result(True, "\n".join(description))
- def generate_sub_configuration_description(self, config):
- return ["Sub configuration description:"]
-
def do_tests(self, recipe_config):
self.do_ping_tests(recipe_config)
self.do_perf_tests(recipe_config)
diff --git a/lnst/Recipes/ENRT/ConfigMixins/BaseSubConfigMixin.py
b/lnst/Recipes/ENRT/ConfigMixins/BaseSubConfigMixin.py
index 0e16670..6974d16 100644
--- a/lnst/Recipes/ENRT/ConfigMixins/BaseSubConfigMixin.py
+++ b/lnst/Recipes/ENRT/ConfigMixins/BaseSubConfigMixin.py
@@ -6,7 +6,7 @@ class BaseSubConfigMixin(object):
pass
def generate_sub_configuration_description(self, config):
- return []
+ return ["Sub configuration description:"]
def remove_sub_configuration(self, config):
return
--
2.25.2