summaryrefslogtreecommitdiff
path: root/app/models/clusters
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2017-11-06 17:33:56 +0100
committerAlessio Caiazza <acaiazza@gitlab.com>2017-11-06 17:33:56 +0100
commit338d7612bcbb27b27cc0b9eadedf2a15c00c3e71 (patch)
tree45fbb2c5f1b5bc7f424ce8bd73809efce572bfd6 /app/models/clusters
parent2802b5bb52b6ba28e6eeb1813f3fd3a79d2c03c4 (diff)
parenta99ad59e655d66fda8af7f2b89aced79b8bc1060 (diff)
downloadgitlab-ce-338d7612bcbb27b27cc0b9eadedf2a15c00c3e71.tar.gz
Merge branch 'refactor-clusters' into 38464-k8s-apps
Diffstat (limited to 'app/models/clusters')
-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