mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2025-12-08 17:36:24 +00:00
fix script to configure feature flags that cannot enable flags
When generating the list of flags that would actually be enabled, the value specified in the option was ANDed with the list of flags that actually existed. At this time, I mistakenly performed a logical AND with the list of "values to invalidate" specified in the option. This mistake caused a problem in which some flags could not be enabled. This commit fixes this to AND with the list of values you want to enable.
This commit is contained in:
parent
9508fcb63a
commit
080b645685
@ -64,7 +64,7 @@ class FeatureFlagCLI
|
||||
if succeed
|
||||
available_flags = self.available_feature_flags
|
||||
disable_targets = available_flags & opts[:to_be_disabled]
|
||||
enable_targets = available_flags & opts[:to_be_disabled]
|
||||
enable_targets = available_flags & opts[:to_be_enabled]
|
||||
|
||||
disable_targets.each do |feature|
|
||||
Feature.disable(feature)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user