diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-10 12:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-10 12:08:27 +0300 |
commit | 1385b54a3e44a90a463d4975bd639089be056778 (patch) | |
tree | 4ba1fbd8e29115ba21472d5ebc88dfa6d9d637a4 /bin | |
parent | 8d8b960cece096fb6af9ada2ca8c88fc48b5476c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/feature-flag | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/feature-flag b/bin/feature-flag index ba86df9c06c..c01fb67131b 100755 --- a/bin/feature-flag +++ b/bin/feature-flag @@ -181,6 +181,10 @@ class FeatureFlagOptionParser $stderr.puts "URL needs to start with https://" end end + + def read_default_enabled(options) + TYPES.dig(options.type, :default_enabled) + end end end @@ -226,7 +230,7 @@ class FeatureFlagCreator 'rollout_issue_url' => options.rollout_issue_url, 'group' => options.group.to_s, 'type' => options.type.to_s, - 'default_enabled' => false + 'default_enabled' => FeatureFlagOptionParser.read_default_enabled(options) ).strip end |