Module: Foreman::Controller::ProvisioningTemplates

Extended by:
ActiveSupport::Concern
Included in:
Api::V2::ProvisioningTemplatesController, TemplatesController
Defined in:
app/controllers/concerns/foreman/controller/provisioning_templates.rb

Instance Method Summary collapse

Instance Method Details

#load_vars_from_templateObject


4
5
6
7
8
9
10
11
# File 'app/controllers/concerns/foreman/controller/provisioning_templates.rb', line 4

def load_vars_from_template
  return unless @template

  @locations        = @template.locations
  @organizations    = @template.organizations
  @template_kind_id = @template.template_kind_id
  @operatingsystems = @template.operatingsystems if @template.respond_to?(:operatingsystems)
end