From 42c28a74567fc1a522b6d2c4a5f4e8a8566a3858 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 24 Feb 2016 10:39:47 -0600 Subject: [PATCH] Stop posting non-facter facts No idea if these are breaking things, but maybe they are. Change-Id: Id9492d901439407a9ffe9976be1fc26afc035b45 --- library/puppet_post_puppetdb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/puppet_post_puppetdb b/library/puppet_post_puppetdb index 14cb1db..77569f2 100644 --- a/library/puppet_post_puppetdb +++ b/library/puppet_post_puppetdb @@ -92,11 +92,6 @@ def main(): for k, v in p['hostvars'].items(): if k.startswith('facter_'): facts[k[7:]] = v - for k, v in p['hostvars'].items(): - if not k.startswith('facter_'): - # Go ahead and set the non-facter facts that ansible has gathered - # too - but let facter facts with the same name win - facts.setdefault(k, v) # remove some problematic facts from facts (if they exist) # files can be a long list of files in a directory