From 28d6f2c179ebe7554b5c4d0b3413a8d3aa2ccdca Mon Sep 17 00:00:00 2001 From: Kristinn Date: Mon, 8 Jul 2019 20:50:25 +0000 Subject: [PATCH] Fixed a bug with changed location of timesketch.conf (#74) --- l2tscaffolder/definitions/timesketch.py | 2 +- test_data/TimesketchPath/{ => data}/timesketch.conf | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename test_data/TimesketchPath/{ => data}/timesketch.conf (100%) diff --git a/l2tscaffolder/definitions/timesketch.py b/l2tscaffolder/definitions/timesketch.py index d408d9e..285bd32 100644 --- a/l2tscaffolder/definitions/timesketch.py +++ b/l2tscaffolder/definitions/timesketch.py @@ -28,7 +28,7 @@ def ValidatePath(self, root_path: str) -> bool: if not os.path.isdir(os.path.join(root_path, 'timesketch')): return False - if not os.path.isfile(os.path.join(root_path, 'timesketch.conf')): + if not os.path.isfile(os.path.join(root_path, 'data', 'timesketch.conf')): return False if not os.path.isdir(os.path.join(root_path, 'timesketch', 'views')): diff --git a/test_data/TimesketchPath/timesketch.conf b/test_data/TimesketchPath/data/timesketch.conf similarity index 100% rename from test_data/TimesketchPath/timesketch.conf rename to test_data/TimesketchPath/data/timesketch.conf