Project

General

Profile

« Previous | Next » 

Revision b729fb04

Added by Paul Kelly almost 14 years ago

  • ID b729fb042c3c82172050a0fe477c6ff9f2c2174d

Fixes #212 - Remove AS from facts

View differences:

app/models/host.rb
end
def self.importHostAndFacts yaml
facts = YAML::load yaml
raise "invalid Fact" unless facts.is_a?(Puppet::Node::Facts)
h=Host.find_or_create_by_name facts.name
return h.importFacts(facts)
begin
facts = YAML::load yaml
raise "invalid Fact" unless facts.is_a?(Puppet::Node::Facts)
h=Host.find_or_create_by_name facts.name
return h.importFacts(facts)
rescue Exception => e
logger.error e.message
false
end
end
# import host facts, required when running without storeconfigs.

Also available in: Unified diff