summaryrefslogtreecommitdiff
path: root/app/models/instance_configuration.rb
diff options
context:
space:
mode:
authorBastian Blank <waldi@debian.org>2019-03-30 00:50:02 +0100
committerBastian Blank <waldi@debian.org>2019-04-03 21:02:11 +0200
commit5725be9508df7922c77cfab4a6c5501548e5e3ca (patch)
tree252c1c9c362ff9a913cf0c8824660cea962c7a3e /app/models/instance_configuration.rb
parentee72dc1b34d893662fe0cb7793a1a960312b1f48 (diff)
downloadgitlab-ce-5725be9508df7922c77cfab4a6c5501548e5e3ca.tar.gz
Display maximum artifact size from runtime config
The maximum artifact size was moved into runtime config some time ago. Update the instance configuration code to read this value.
Diffstat (limited to 'app/models/instance_configuration.rb')
-rw-r--r--app/models/instance_configuration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/instance_configuration.rb b/app/models/instance_configuration.rb
index 11289887e00..a9b1962f24c 100644
--- a/app/models/instance_configuration.rb
+++ b/app/models/instance_configuration.rb
@@ -39,7 +39,7 @@ class InstanceConfiguration
def gitlab_ci
Settings.gitlab_ci
.to_h
- .merge(artifacts_max_size: { value: Settings.artifacts.max_size&.megabytes,
+ .merge(artifacts_max_size: { value: Gitlab::CurrentSettings.max_artifacts_size.megabytes,
default: 100.megabytes })
end