Sha256: 39757af84c4c292c05d8a1d1341d3da8f898729f91dbcac2c9d09072cd601e04

Contents?: true

Size: 408 Bytes

Versions: 39

Compression:

Stored size: 408 Bytes

Contents

class ForemanDiscovery::HostFactImporter < ::HostFactImporter
    def import_facts(facts)
        # Discovered Hosts won't report in via puppet, so we can use that field to
        # record the last time it sent facts...
        host.last_report = Time.now
        # Set the correct facts type for new foreman facts importing code.
        facts[:_type] = :foreman_discovery
        super(facts)
    end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
foreman_discovery-25.0.0 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-24.0.2 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-23.0.2 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-24.0.1 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-24.0.0 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-23.0.1 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-23.0.0 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-22.0.4 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-21.0.5 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-22.0.2 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-21.0.4 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-21.0.3 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-21.0.2 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-19.0.5 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-19.0.4 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-21.0.1 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-19.0.3 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-21.0.0 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-19.0.2 app/services/foreman_discovery/host_fact_importer.rb
foreman_discovery-20.0.1 app/services/foreman_discovery/host_fact_importer.rb