diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-07-21 21:13:41 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-07-22 16:07:52 +0300 |
commit | 0711d9adfc9e402c7763ce1ce914bc672165eb90 (patch) | |
tree | 54bedc855125771c805da6ca495de18d1a89337a /lib | |
parent | 8efc8841665471403de93b431cbbe66004446c2e (diff) |
Fix support for old CI API when image or services are not specified
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/api/entities.rb b/lib/ci/api/entities.rb index 6b82b2b4f13..31f66dd5a58 100644 --- a/lib/ci/api/entities.rb +++ b/lib/ci/api/entities.rb @@ -52,7 +52,7 @@ module Ci # when old API will be removed (planned for August 2017). model.options.dup.tap do |options| options[:image] = options[:image][:name] if options[:image].is_a?(Hash) - options[:services].map! do |service| + options[:services]&.map! do |service| if service.is_a?(Hash) service[:name] else |