diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-06-24 11:33:32 +1200 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-06-27 17:28:52 +1200 |
commit | 2f96e5d3b9e750c5faef1fc8d95b18cb02002516 (patch) | |
tree | f86f14017eb18b5a3b11945a423772c98ea2228b /app/models/concerns/deployable.rb | |
parent | 525edec78bc39ae41284927f1866def56d21a12a (diff) | |
download | gitlab-ce-2f96e5d3b9e750c5faef1fc8d95b18cb02002516.tar.gz |
Populate cluster_id when creating a deployment
Diffstat (limited to 'app/models/concerns/deployable.rb')
-rw-r--r-- | app/models/concerns/deployable.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/concerns/deployable.rb b/app/models/concerns/deployable.rb index bc12b06b5af..957b72f3721 100644 --- a/app/models/concerns/deployable.rb +++ b/app/models/concerns/deployable.rb @@ -18,6 +18,7 @@ module Deployable return unless environment.persisted? create_deployment!( + cluster_id: environment.deployment_platform&.cluster_id, project_id: environment.project_id, environment: environment, ref: ref, |