summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/rails/host.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/rails/host.rb b/lib/puppet/rails/host.rb
index 9ecacdd6f..72898fd97 100644
--- a/lib/puppet/rails/host.rb
+++ b/lib/puppet/rails/host.rb
@@ -29,15 +29,13 @@ class Puppet::Rails::Host < ActiveRecord::Base
# Store our host in the database.
def self.store(node, resources)
- raise ArgumentError, "You must specify the hostname for storage" unless name = hash[:name]
-
args = {}
host = nil
transaction do
#unless host = find_by_name(name)
seconds = Benchmark.realtime {
- unless host = find_by_name(name)
+ unless host = find_by_name(node.name)
host = new(:name => node.name)
end
}