summaryrefslogtreecommitdiff
path: root/app/workers/wait_for_cluster_creation_worker.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-10-04 15:14:01 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-10-04 15:14:45 +0200
commitea4af856e49cf5933b6995965fa7d6b922e38c20 (patch)
treea8402a61029dee967883b4e250f42aabdaaf8c42 /app/workers/wait_for_cluster_creation_worker.rb
parent7329a0347f6093a15ffb0cf8f6a9ddc7f0495cb6 (diff)
downloadgitlab-ce-ea4af856e49cf5933b6995965fa7d6b922e38c20.tar.gz
Fix cluster event names to be prefixed with: `make_`
Diffstat (limited to 'app/workers/wait_for_cluster_creation_worker.rb')
-rw-r--r--app/workers/wait_for_cluster_creation_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/wait_for_cluster_creation_worker.rb b/app/workers/wait_for_cluster_creation_worker.rb
index aa1cd84fa8c..f72bf409b20 100644
--- a/app/workers/wait_for_cluster_creation_worker.rb
+++ b/app/workers/wait_for_cluster_creation_worker.rb
@@ -12,14 +12,14 @@ class WaitForClusterCreationWorker
case operation.status
when 'RUNNING'
if TIMEOUT < Time.zone.now - operation.start_time.to_time
- return cluster.errored!("Cluster creation time exceeds timeout; #{TIMEOUT}")
+ return cluster.make_errored!("Cluster creation time exceeds timeout; #{TIMEOUT}")
end
WaitForClusterCreationWorker.perform_in(EAGER_INTERVAL, cluster.id)
when 'DONE'
Ci::FinalizeClusterCreationService.new.execute(cluster)
else
- return cluster.errored!("Unexpected operation status; #{operation.status} #{operation.status_message}")
+ return cluster.make_errored!("Unexpected operation status; #{operation.status} #{operation.status_message}")
end
end
end