From 686e79ba16e9511cbaf411ed6c622bf472de616f Mon Sep 17 00:00:00 2001 From: Markus Bucher Date: Wed, 20 Dec 2023 18:33:12 +0100 Subject: [PATCH] REMOVEME: break itwq --- app/models/foreman_acd/app_definition.rb | 2 +- .../components/ApplicationDefinition/ApplicationDefinition.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/foreman_acd/app_definition.rb b/app/models/foreman_acd/app_definition.rb index 0c00e911..4acb784e 100644 --- a/app/models/foreman_acd/app_definition.rb +++ b/app/models/foreman_acd/app_definition.rb @@ -10,7 +10,7 @@ class AppDefinition < ApplicationRecord include Parameterizable::ByIdName self.table_name = 'acd_app_definitions' - validates :name, :presence => true, :uniqueness => true + validates :name, :presence => true, :uniqueness => false validates :ansible_playbook, :presence => true has_many :app_instances, :inverse_of => :app_definition, :dependent => :destroy belongs_to :ansible_playbook, :inverse_of => :app_definitions, :foreign_key => :acd_ansible_playbook_id diff --git a/webpack/components/ApplicationDefinition/ApplicationDefinition.js b/webpack/components/ApplicationDefinition/ApplicationDefinition.js index 3eec140b..9928e360 100644 --- a/webpack/components/ApplicationDefinition/ApplicationDefinition.js +++ b/webpack/components/ApplicationDefinition/ApplicationDefinition.js @@ -245,7 +245,7 @@ class ApplicationDefinition extends React.Component { /> {ansiblePlaybook.id == '' ? (
-
{ "Ansible Playbook can't be blank" }
+
{ "Ansible Playbook can be blank" }
) : (
)}