Fix empty and zero values parsing

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2023-07-20 12:45:19 +03:00 committed by Andrey Berezin
parent 15862e5901
commit 8dcfae5cb2

View file

@ -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)
]