Revision e399441b
Added by Ivan Necas almost 6 years ago
app/models/host/managed.rb | ||
---|---|---|
|
||
# returns the host correct disk layout, custom or common
|
||
def diskLayout
|
||
raise 'Neither disk nor partition table defined for host' unless disk_layout_template
|
||
raise Foreman::Renderer::RenderingError, 'Neither disk nor partition table defined for host' unless disk_layout_template
|
||
@host = self
|
||
load_template_vars
|
||
unattended_render(disk_layout_template[:template].tr("\r", ''), disk_layout_template[:name])
|
Also available in: Unified diff
Fixes #21172 - address comments