From 8dcfae5cb2c4bea03c8ae16293feee5d97c3d6de Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Thu, 20 Jul 2023 12:45:19 +0300 Subject: [PATCH] Fix empty and zero values parsing Signed-off-by: Andrey Berezin --- src/frostfs_testlib/load/load_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frostfs_testlib/load/load_config.py b/src/frostfs_testlib/load/load_config.py index 357a1296..e73eea75 100644 --- a/src/frostfs_testlib/load/load_config.py +++ b/src/frostfs_testlib/load/load_config.py @@ -245,7 +245,7 @@ class LoadParams: for meta_field in self._get_meta_fields(self) if self.scenario in meta_field.metadata["applicable_scenarios"] and meta_field.metadata["env_variable"] - and meta_field.value + and meta_field.value is not None } return env_vars @@ -256,7 +256,7 @@ class LoadParams: for meta_field in self._get_meta_fields(self) if self.scenario in meta_field.metadata["applicable_scenarios"] and meta_field.metadata["preset_argument"] - and meta_field.value + and meta_field.value is not None and self._get_preset_argument(meta_field) ]