Skip to content

Commit b33c8cb

Browse files
Remove type check on pre reqs as MV flags do not evaluate correctly
1 parent 7f9f8d0 commit b33c8cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

featureflags/evaluations/evaluator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ def _check_prerequisite(self, parent: FeatureConfig,
293293
log.info('Pre requisite flag %s should have the variations %s',
294294
config.feature, pqs.variations)
295295

296-
if variation.identifier not in pqs.variations:
296+
if not isinstance(variation, Unset) and variation.identifier \
297+
not in pqs.variations:
297298
return False
298299
else:
299300
return self._check_prerequisite(config, target)

0 commit comments

Comments
 (0)