From de469577d1a431779036e6379bb3f7c105d5246d Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 20 Apr 2022 19:05:06 -0300 Subject: [PATCH] Removed value argument in internal KiBoM variant code - This is handled by a filter --- kibot/var_kibom.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kibot/var_kibom.py b/kibot/var_kibom.py index 826a9853..980e8461 100644 --- a/kibot/var_kibom.py +++ b/kibot/var_kibom.py @@ -68,7 +68,7 @@ class KiBoM(BaseVariant): # noqa: F821 # Config field must be lowercase self.config_field = self.config_field.lower() - def _variant_comp_is_fitted(self, value, config): + def _variant_comp_is_fitted(self, config): """ Apply the variants to determine if this component will be fitted. value: component value (lowercase). config: content of the 'Config' field (lowercase). """ @@ -99,10 +99,9 @@ class KiBoM(BaseVariant): # noqa: F821 if not (c.fitted and c.included): # Don't check if we already discarded it continue - value = c.value.lower() config = c.get_field_value(self.config_field).lower() - c.fitted = self._variant_comp_is_fitted(value, config) + c.fitted = self._variant_comp_is_fitted(config) if not c.fitted and GS.debug_level > 2: - logger.debug('ref: {} value: {} config: {} variant: {} -> False'. - format(c.ref, value, config, self.variant)) + logger.debug('ref: {} config: {} variant: {} -> False'. + format(c.ref, config, self.variant)) return comps