diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-23 14:26:21 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-23 14:26:21 +0300 |
commit | 0335d09e5886288de19e5320e13607e4c70fb4ab (patch) | |
tree | dda1e5127314d15dce3a8011a82beb1398e8f0be /lib/gitlab/ci/pipeline/expression | |
parent | f2ec6c1c344b09b3a911c1fbb69aacb7f15082c5 (diff) |
Integrate variables policy with new pipeline services
Diffstat (limited to 'lib/gitlab/ci/pipeline/expression')
-rw-r--r-- | lib/gitlab/ci/pipeline/expression/statement.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/statement.rb b/lib/gitlab/ci/pipeline/expression/statement.rb index 21675065c2b..f0f3d760b70 100644 --- a/lib/gitlab/ci/pipeline/expression/statement.rb +++ b/lib/gitlab/ci/pipeline/expression/statement.rb @@ -19,10 +19,10 @@ module Gitlab return if pipeline.nil? - # temporary refactoring stubs + # REFACTORING, temporary refactoring stubs # @variables = pipeline.project.predefined_variables.map do |variable| - [variable.fetch(:key), variable.fetch(:value)] + [variable[:key], variable[:value]] end @variables += pipeline.variables.map do |variable| @@ -30,7 +30,7 @@ module Gitlab end @variables += pipeline.predefined_variables.map do |variable| - [variable.fetch(:key), variable.fetch(:value)] + [variable[:key], variable[:value]] end end |