Sha256: f79e710e0bf697185d503ef144fe6130fdc5ea7745477b80a28b18761a08335a
Contents?: true
Size: 581 Bytes
Versions: 6
Compression:
Stored size: 581 Bytes
Contents
class Setting::Discovered def self.discovery_fact_column_array from_array(Setting['discovery_fact_column']) end def self.discovery_hostname_fact_array return [] if !Setting['discovery_hostname'].present? from_array Setting['discovery_hostname'] end def self.discovery_lock? Foreman::Cast.to_bool(Setting['discovery_lock']) end def self.from_array(setting) return [] unless setting.present? setting.to_s.split(",").map(&:strip) rescue Exception => e logger.warn "Failed to parse discovery_fact_column, ignoring: #{e}" [] end end
Version data entries
6 entries across 6 versions & 1 rubygems