diff options
Diffstat (limited to 'lib/gitlab/ci/config/entry/service.rb')
-rw-r--r-- | lib/gitlab/ci/config/entry/service.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/gitlab/ci/config/entry/service.rb b/lib/gitlab/ci/config/entry/service.rb index 4b3a9990df4..94fd28badb7 100644 --- a/lib/gitlab/ci/config/entry/service.rb +++ b/lib/gitlab/ci/config/entry/service.rb @@ -34,14 +34,14 @@ module Gitlab end def value - if string? - { name: @config } - elsif hash? - @config.merge( - pull_policy: pull_policy_value + if hash? + super.merge( + command: @config[:command], + alias: @config[:alias], + variables: (variables_value if variables_defined?) ).compact else - {} + super end end end |