summaryrefslogtreecommitdiff
path: root/app/models/gcp
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-04 22:40:12 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-04 22:40:12 +0900
commita644f4b829080d603405c6eee73a88e2be5cf929 (patch)
treef050264bffc9ac43d600747cb3e43d734bc4fd6b /app/models/gcp
parentea4af856e49cf5933b6995965fa7d6b922e38c20 (diff)
downloadgitlab-ce-a644f4b829080d603405c6eee73a88e2be5cf929.tar.gz
Add spec/models/gcp/cluster_spec.rb
Diffstat (limited to 'app/models/gcp')
-rw-r--r--app/models/gcp/cluster.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/gcp/cluster.rb b/app/models/gcp/cluster.rb
index 21eab9d8c1c..367e9be578c 100644
--- a/app/models/gcp/cluster.rb
+++ b/app/models/gcp/cluster.rb
@@ -84,7 +84,7 @@ module Gcp
cluster.gcp_operation_id = nil
end
- before_transition any => [:errored] do |cluster|
+ before_transition any => [:errored] do |cluster, transition|
status_reason = transition.args.first
cluster.status_reason = status_reason
end