Module: Katello::Concerns::RendererExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/lib/katello/concerns/renderer_extensions.rb

Instance Method Summary collapse

Instance Method Details

#kickstart_attributes_with_katelloObject



10
11
12
13
14
15
16
17
18
# File 'app/lib/katello/concerns/renderer_extensions.rb', line 10

def kickstart_attributes_with_katello
  kickstart_attributes_without_katello

  content_view = @host.try(:content_facet).try(:content_view) || @host.try(:content_view)
  if content_view && @host.operatingsystem.is_a?(Redhat) &&
          @host.operatingsystem.kickstart_repos(@host).first.present?
    @mediapath ||= @host.operatingsystem.mediumpath(@host)
  end
end