summaryrefslogtreecommitdiff
path: root/app/services/clusters
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-01 03:59:40 +0900
committerShinya Maeda <shinya@gitlab.com>2017-11-01 03:59:40 +0900
commit253bf69dda460869741bc6c9d864c789055b8013 (patch)
tree38fc90dbd0c76bf11c2845aa86130be5c051ef3b /app/services/clusters
parent6a65e2f5f94781a69f3f7fb329483ead6bc81fd9 (diff)
downloadgitlab-ce-253bf69dda460869741bc6c9d864c789055b8013.tar.gz
specs for feature
Diffstat (limited to 'app/services/clusters')
-rw-r--r--app/services/clusters/create_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/clusters/create_service.rb b/app/services/clusters/create_service.rb
index 94b889895ba..8c30e247fdc 100644
--- a/app/services/clusters/create_service.rb
+++ b/app/services/clusters/create_service.rb
@@ -29,8 +29,7 @@ module Clusters
return @cluster_params if defined?(@cluster_params)
params[:provider_gcp_attributes].try do |h|
- h[:machine_type] ||= GoogleApi::CloudPlatform::Client::DEFAULT_MACHINE_TYPE
- h[:access_token] ||= access_token
+ h[:access_token] = access_token
end
@cluster_params = params.merge(user: current_user)