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" }
) : (
)}