diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-06-02 10:19:34 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-06-02 10:19:34 +0300 |
commit | 3731ae092cac523a0092c64000d9e838662a85df (patch) | |
tree | d8449d24ff6da3bee4b42f134ac542bf2303bb6a /app/services | |
parent | b01bc0a0362fdc81f61941bee3b090267b6873c1 (diff) |
CreatePipelineBuildsService would have created env
So we don't have to do it in CreateDeploymentService
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11695#note_31322649
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 f30916093ce..0d2ffa8012d 100644 --- a/app/services/create_deployment_service.rb +++ b/app/services/create_deployment_service.rb @@ -42,7 +42,7 @@ class CreateDeploymentService end def environment - @environment ||= job.ensure_persisted_environment + @environment ||= job.persisted_environment end def environment_options |