diff options
-rw-r--r-- | app/controllers/projects/clusters/applications_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/clusters/applications_controller.rb b/app/controllers/projects/clusters/applications_controller.rb index ce04c186dc0..4d758402850 100644 --- a/app/controllers/projects/clusters/applications_controller.rb +++ b/app/controllers/projects/clusters/applications_controller.rb @@ -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 |