diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-05 21:33:29 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-05 21:33:29 +0200 |
commit | 4cda11585c75ce923d357b0dbb91fb393ed8e303 (patch) | |
tree | f67a5375db33a4dc8d774732ae9514b540b4fb95 /app/services/ci | |
parent | 6712762b9d6e0391b1a38ca17cc3d982a336bbf9 (diff) | |
download | gitlab-ce-4cda11585c75ce923d357b0dbb91fb393ed8e303.tar.gz |
Fix almost all unresolved comments from Docs and UX review
Diffstat (limited to 'app/services/ci')
-rw-r--r-- | app/services/ci/create_cluster_service.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/services/ci/create_cluster_service.rb b/app/services/ci/create_cluster_service.rb index d01e167ecc3..f7ee0e468e2 100644 --- a/app/services/ci/create_cluster_service.rb +++ b/app/services/ci/create_cluster_service.rb @@ -3,9 +3,11 @@ module Ci def execute(access_token) params['gcp_machine_type'] ||= GoogleApi::CloudPlatform::Client::DEFAULT_MACHINE_TYPE - project.create_cluster( + cluster_params = params.merge(user: current_user, - gcp_token: access_token)).tap do |cluster| + gcp_token: access_token) + + project.create_cluster(cluster_params).tap do |cluster| ClusterProvisionWorker.perform_async(cluster.id) if cluster.persisted? end end |