summaryrefslogtreecommitdiff
path: root/app/models/clusters/providers/gcp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/clusters/providers/gcp.rb')
-rw-r--r--app/models/clusters/providers/gcp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/clusters/providers/gcp.rb b/app/models/clusters/providers/gcp.rb
index 7700ba86f1a..c4391729dd7 100644
--- a/app/models/clusters/providers/gcp.rb
+++ b/app/models/clusters/providers/gcp.rb
@@ -55,7 +55,7 @@ module Clusters
before_transition any => [:creating] do |provider, transition|
operation_id = transition.args.first
- raise 'operation_id is required' unless operation_id
+ raise ArgumentError.new('operation_id is required') unless operation_id.present?
provider.operation_id = operation_id
end