From d5c65b2ea636885f7acce05e3894151bb5f97047 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Wed, 22 Oct 2014 11:55:25 +0200 Subject: [PATCH] Fixes #7999 - do not match on 1.6.x releases --- app/models/host/discovered.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/host/discovered.rb b/app/models/host/discovered.rb index b513197b..93c4dec3 100644 --- a/app/models/host/discovered.rb +++ b/app/models/host/discovered.rb @@ -77,7 +77,7 @@ def attributes_to_import_from_facts def populate_fields_from_facts facts = self.facts_hash, type = 'puppet' # type arg only added in 1.7 - if Gem::Dependency.new('', '> 1.6').match?('', SETTINGS[:version].notag) + if Gem::Dependency.new('', '>= 1.7').match?('', SETTINGS[:version].notag) importer = super else importer = super(facts)