summaryrefslogtreecommitdiff
path: root/app/workers/cluster_provision_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/cluster_provision_worker.rb')
-rw-r--r--app/workers/cluster_provision_worker.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/workers/cluster_provision_worker.rb b/app/workers/cluster_provision_worker.rb
index 63300b58a25..79f0d73c396 100644
--- a/app/workers/cluster_provision_worker.rb
+++ b/app/workers/cluster_provision_worker.rb
@@ -3,8 +3,10 @@ class ClusterProvisionWorker
include ClusterQueue
def perform(cluster_id)
- Gcp::Cluster.find_by_id(cluster_id).try do |cluster|
- Ci::ProvisionClusterService.new.execute(cluster)
+ Clusters::Cluster.find_by_id(cluster_id).try do |cluster|
+ cluster.gcp_provider.try do |provider|
+ Clusters::Gcp::ProvisionService.new.execute(provider)
+ end
end
end
end