Commit 6f520617 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix exception in clusters/applications_controller.rb

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent db9f7658
......@@ -7,7 +7,7 @@ class Projects::Clusters::ApplicationsController < Projects::ApplicationControll
def create
application = @application_class.find_or_initialize_by(cluster: @cluster)
if has_attribute?(:hostname)
if application.has_attribute?(:hostname)
application.hostname = params[:hostname]
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment