]> gitweb.fluxo.info Git - puppet-monkeysphere.git/commitdiff
silence failures to show keys that would spam puppet output
authorAntoine Beaupré <anarcat@koumbit.org>
Thu, 21 Nov 2013 21:33:00 +0000 (16:33 -0500)
committerAntoine Beaupré <anarcat@koumbit.org>
Thu, 21 Nov 2013 21:33:00 +0000 (16:33 -0500)
lib/facter/monkeysphere.rb

index 1d7d68ea4a156fb0a4fc4327abb67bef3d0a4503..6f48a4d63836995dd9256b90acb244e30fc0dc03 100644 (file)
@@ -5,7 +5,7 @@ ssh_fingerprint = ' '
 
 if File.exist?('/usr/sbin/monkeysphere-host')
 
-  sk = %x{/usr/sbin/monkeysphere-host show-keys}
+  sk = %x{/usr/sbin/monkeysphere-host show-keys 2>/dev/null}
   if $? == 0
     has_hostkey = true
     sk.lines.each do |line|