summaryrefslogtreecommitdiff
path: root/app/models/concerns/deployable.rb
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-06-24 11:33:32 +1200
committerThong Kuah <tkuah@gitlab.com>2019-06-27 17:28:52 +1200
commit2f96e5d3b9e750c5faef1fc8d95b18cb02002516 (patch)
treef86f14017eb18b5a3b11945a423772c98ea2228b /app/models/concerns/deployable.rb
parent525edec78bc39ae41284927f1866def56d21a12a (diff)
downloadgitlab-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.rb1
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,