Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #37949 - Fix typo #10360

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading