summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-06-02 02:46:34 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-06-02 02:46:34 +0800
commitf62603286d72d42e5b4e87b8f7f7bd6094407f1b (patch)
treef27b97f601359a34de49ae202848c341f6535553 /app/services
parente9a98d3d2dbf8d7d9c181a5505c5d3a3200d711b (diff)
downloadgitlab-ce-f62603286d72d42e5b4e87b8f7f7bd6094407f1b.tar.gz
Fix other use of CreateDeploymentService and make
it a bit more robust against missing options, which we did guard on for some cases.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/create_deployment_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/create_deployment_service.rb b/app/services/create_deployment_service.rb
index 8b42ff915ee..f30916093ce 100644
--- a/app/services/create_deployment_service.rb
+++ b/app/services/create_deployment_service.rb
@@ -46,7 +46,7 @@ class CreateDeploymentService
end
def environment_options
- @environment_options ||= job.options[:environment] || {}
+ @environment_options ||= job.options&.dig(:environment) || {}
end
def on_stop