Skip to content

Commit

Permalink
Refs #7096 - Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nadjaheitmann committed Oct 25, 2024
1 parent eb66c09 commit dbfcbf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/provisioning_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def base_class
:reject_if => :reject_template_combination_attributes?
has_and_belongs_to_many :operatingsystems, :join_table => :operatingsystems_provisioning_templates, :association_foreign_key => :operatingsystem_id, :foreign_key => :provisioning_template_id
has_many :os_default_templates
before_save :check_for_snippet_assoications
before_save :check_for_snippet_associations

validate :no_os_for_registration

Expand Down Expand Up @@ -255,7 +255,7 @@ def allowed_changes
end

# check if our template is a snippet, and remove its associations just in case they were selected.
def check_for_snippet_assoications
def check_for_snippet_associations
return unless snippet
hostgroups.clear
template_combinations.clear
Expand Down

0 comments on commit dbfcbf1

Please sign in to comment.