Revision 5440d482
Added by Greg Sutcliffe over 9 years ago
app/models/concerns/orchestration/tftp.rb | ||
---|---|---|
end
|
||
|
||
def tftp?
|
||
provision? && !!(subnet && subnet.tftp?) && host.managed? && (host.operatingsystem && host.operatingsystem.pxe_variant) && managed? && pxe_build?
|
||
# host.managed? and managed? should always come first so that orchestration doesn't
|
||
# even get tested for such objects
|
||
(host.nil? || host.managed?) && managed && provision? && !!(subnet && subnet.tftp?) && (host && host.operatingsystem && host.operatingsystem.pxe_variant) && pxe_build?
|
||
end
|
||
|
||
def tftp
|
Also available in: Unified diff
Fixes #9147 - move managed checks to the start of the DHCP/DNS/TFTP orchestration checks