Logs created by lnst-ctl will now have prefix with index number so they will no longer be overriden and lost when one recipe file is specified multiple time in command line arguments.
Fixes issue #163
Signed-off-by: Jiri Prochazka jprochaz@redhat.com --- lnst-ctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lnst-ctl b/lnst-ctl index f3c2eb2..875accd 100755 --- a/lnst-ctl +++ b/lnst-ctl @@ -98,7 +98,7 @@ def get_recipe_result(action, file_path, log_ctl, res_serializer, matches = 1 no_match = False
- log_ctl.set_recipe(file_path, expand="match_%d" % matches) + log_ctl.set_recipe(file_path, prepend=True, expand="match_%d" % matches) log_dir = log_ctl.get_recipe_log_path() recipe_head_log_entry(file_path, log_dir, matches) res_serializer.add_recipe(file_path, matches) @@ -139,7 +139,7 @@ def get_recipe_result(action, file_path, log_ctl, res_serializer, elif matches > 1: try: nettestctl.provision_machines() - log_ctl.set_recipe(file_path, expand="match_%d" % matches) + log_ctl.set_recipe(file_path, prepend=True, expand="match_%d" % matches) log_dir = log_ctl.get_recipe_log_path() recipe_head_log_entry(file_path, log_dir, matches) res_serializer.add_recipe(file_path, matches)