BigW Consortium Gitlab

Fix exception in clusters/applications_controller.rb

parent db9f7658
...@@ -7,7 +7,7 @@ class Projects::Clusters::ApplicationsController < Projects::ApplicationControll ...@@ -7,7 +7,7 @@ class Projects::Clusters::ApplicationsController < Projects::ApplicationControll
def create def create
application = @application_class.find_or_initialize_by(cluster: @cluster) application = @application_class.find_or_initialize_by(cluster: @cluster)
if has_attribute?(:hostname) if application.has_attribute?(:hostname)
application.hostname = params[:hostname] application.hostname = params[:hostname]
end 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