Skip to content

Commit

Permalink
Merge pull request ManageIQ#15495 from d-m-u/unique_pxe_customization…
Browse files Browse the repository at this point in the history
…_template_name

Checks PXE customization templates for unique names
(cherry picked from commit aca086c)

https://bugzilla.redhat.com/show_bug.cgi?id=1518368
  • Loading branch information
gmcculloug authored and d-m-u committed Jun 6, 2018
1 parent 8f1e45e commit 69f7d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/customization_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class CustomizationTemplate < ApplicationRecord
has_many :pxe_images, :through => :pxe_image_type

validates :pxe_image_type, :presence => true, :unless => :system?
# validates :name, :uniqueness => { :scope => :pxe_image_type }
validates :name, :uniqueness => { :scope => :pxe_image_type }, :unique_within_region => true

def self.seed_file_name
@seed_file_name ||= Rails.root.join("db", "fixtures", "#{table_name}.yml")
Expand Down

0 comments on commit 69f7d2f

Please sign in to comment.