Revision 7aa342ea
Added by Michael Moll about 8 years ago
app/models/operatingsystems/suse.rb | ||
---|---|---|
delegate :model_name, :to => :superclass
|
||
end
|
||
|
||
# Simple output of the media url
|
||
def mediumpath(host)
|
||
medium_uri(host).to_s
|
||
end
|
||
|
||
def pxe_type
|
||
"yast"
|
||
end
|
lib/foreman/renderer.rb | ||
---|---|---|
end
|
||
|
||
def yast_attributes
|
||
@mediapath = @host.operatingsystem.mediumpath @host
|
||
end
|
||
|
||
def coreos_attributes
|
test/functional/provisioning_templates_controller_test.rb | ||
---|---|---|
end
|
||
|
||
test 'preview' do
|
||
host = FactoryGirl.create(:host, :managed, :operatingsystem => FactoryGirl.create(:suse, :with_archs))
|
||
host = FactoryGirl.create(:host, :managed, :operatingsystem => FactoryGirl.create(:suse, :with_archs, :with_media))
|
||
template = FactoryGirl.create(:provisioning_template)
|
||
|
||
# works for given host
|
test/functional/ptables_controller_test.rb | ||
---|---|---|
end
|
||
|
||
test 'preview' do
|
||
host = FactoryGirl.create(:host, :managed, :operatingsystem => FactoryGirl.create(:suse, :with_archs))
|
||
host = FactoryGirl.create(:host, :managed, :operatingsystem => FactoryGirl.create(:suse, :with_archs, :with_media))
|
||
template = FactoryGirl.create(:ptable)
|
||
|
||
# works for given host
|
Also available in: Unified diff
fixes #9782 - implement mediapath for suse/yast