diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-06-02 02:46:34 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-06-02 02:46:34 +0800 |
commit | f62603286d72d42e5b4e87b8f7f7bd6094407f1b (patch) | |
tree | f27b97f601359a34de49ae202848c341f6535553 /app/services | |
parent | e9a98d3d2dbf8d7d9c181a5505c5d3a3200d711b (diff) | |
download | gitlab-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.rb | 2 |
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 |