commit 379c8edb87b801b45d5600a08bd8802f3f6ede62
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Mon Sep 22 15:28:26 2014 +0200
lnst-ctl: move recipe_head_log_entry to correct place
The function recipe_head_log_entry was at the incorrect place in the
code that resulted in having the first log entry "Processing recipe
file ..." for a recipe in the root debug file (for the first recipe)
or in the previous recipe (for all subsequent recipes).
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst-ctl | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lnst-ctl b/lnst-ctl
index 008d4ea..6ff00ab 100755
--- a/lnst-ctl
+++ b/lnst-ctl
@@ -90,6 +90,7 @@ def get_recipe_result(args, file_path, res_serializer, packet_capture,
log_ctl,
reduce_sync):
res_serializer.add_recipe(file_path)
log_ctl.set_recipe(file_path)
+ recipe_head_log_entry(file_path)
retval = RETVAL_PASS
@@ -242,7 +243,6 @@ def main():
for f in all_files:
recipe_file = os.path.join(recipe_path, f)
if re.match(r'^.*\.xml$', recipe_file):
- recipe_head_log_entry(recipe_file)
fp, res, rv = get_recipe_result(action, recipe_file,
res_serializer,
packet_capture,
@@ -251,7 +251,6 @@ def main():
overriden_aliases,
reduce_sync)
else:
- recipe_head_log_entry(recipe_path)
fp, res, rv = get_recipe_result(action, recipe_path,
res_serializer,
packet_capture,
Show replies by date