diff options
Diffstat (limited to 'app/controllers/projects/clusters')
-rw-r--r-- | app/controllers/projects/clusters/user_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/clusters/user_controller.rb b/app/controllers/projects/clusters/user_controller.rb index 7f108c54b19..d7678512073 100644 --- a/app/controllers/projects/clusters/user_controller.rb +++ b/app/controllers/projects/clusters/user_controller.rb @@ -11,7 +11,7 @@ class Projects::Clusters::UserController < Projects::ApplicationController def create @cluster = ::Clusters::CreateService .new(project, current_user, create_params) - .execute(nil) + .execute if @cluster.persisted? redirect_to project_cluster_path(project, @cluster) |