forked from TrueCloudLab/frostfs-testlib
Fix empty and zero values parsing
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
15862e5901
commit
8dcfae5cb2
1 changed files with 2 additions and 2 deletions
|
@ -245,7 +245,7 @@ class LoadParams:
|
||||||
for meta_field in self._get_meta_fields(self)
|
for meta_field in self._get_meta_fields(self)
|
||||||
if self.scenario in meta_field.metadata["applicable_scenarios"]
|
if self.scenario in meta_field.metadata["applicable_scenarios"]
|
||||||
and meta_field.metadata["env_variable"]
|
and meta_field.metadata["env_variable"]
|
||||||
and meta_field.value
|
and meta_field.value is not None
|
||||||
}
|
}
|
||||||
|
|
||||||
return env_vars
|
return env_vars
|
||||||
|
@ -256,7 +256,7 @@ class LoadParams:
|
||||||
for meta_field in self._get_meta_fields(self)
|
for meta_field in self._get_meta_fields(self)
|
||||||
if self.scenario in meta_field.metadata["applicable_scenarios"]
|
if self.scenario in meta_field.metadata["applicable_scenarios"]
|
||||||
and meta_field.metadata["preset_argument"]
|
and meta_field.metadata["preset_argument"]
|
||||||
and meta_field.value
|
and meta_field.value is not None
|
||||||
and self._get_preset_argument(meta_field)
|
and self._get_preset_argument(meta_field)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue