diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2017-07-19 16:40:25 +0100 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2017-07-19 16:40:25 +0100 |
commit | 5d238ae819077c831092c6a72281cd81aea398e6 (patch) | |
tree | 3460f4a79776d05f4fc5a122c915ac30c52df2fa /lib | |
parent | 55b981343b8e91a9890f6be1c202289cc425f89b (diff) | |
download | gitlab-ce-5d238ae819077c831092c6a72281cd81aea398e6.tar.gz |
Add option to specify migration status on at the migration sitemigration-status
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gitaly_client.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb index 197a94487eb..435e41e36fb 100644 --- a/lib/gitlab/gitaly_client.rb +++ b/lib/gitlab/gitaly_client.rb @@ -86,8 +86,8 @@ module Gitlab feature.enabled? end - def self.migrate(feature) - is_enabled = feature_enabled?(feature) + def self.migrate(feature, status: MigrationStatus::OPT_IN) + is_enabled = feature_enabled?(feature, status: status) metric_name = feature.to_s metric_name += "_gitaly" if is_enabled |