Revision d1d6690b
Added by Michael Moll over 8 years ago
app/models/host/managed.rb | ||
---|---|---|
:image_build?, :pxe_build?, :otp, :realm, :param_true?, :param_false?, :nil?, :indent, :primary_interface,
|
||
:provision_interface, :interfaces, :bond_interfaces, :interfaces_with_identifier, :managed_interfaces, :facts, :facts_hash, :root_pass,
|
||
:sp_name, :sp_ip, :sp_mac, :sp_subnet, :use_image,
|
||
:multiboot, :jumpstart_path, :install_path, :miniroot
|
||
:multiboot, :jumpstart_path, :install_path, :miniroot, :medium
|
||
end
|
||
|
||
attr_reader :cached_host_params
|
app/models/operatingsystem.rb | ||
---|---|---|
'NXOS' => %r{NX-OS}i }
|
||
|
||
class Jail < Safemode::Jail
|
||
allow :name, :media_url, :major, :minor, :family, :to_s, :repos, :==, :release_name, :kernel, :initrd, :pxe_type, :medium_uri
|
||
allow :name, :media_url, :major, :minor, :family, :to_s, :repos, :==, :release_name, :kernel, :initrd, :pxe_type, :medium_uri, :boot_files_uri
|
||
end
|
||
|
||
# As Rails loads an object it casts it to the class in the 'type' field. If we ensure that the type and
|
Also available in: Unified diff
fixes #12791 - allow access to boot_files_uri and medium in safe_mode
(cherry picked from commit 1c81a696e4556ae3c17146afaff2fe6e2c52688d)