expand hiera data and add cluster info to motd
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / cluster.rb
index 6b083a4..3588868 100644 (file)
@@ -1,6 +1,6 @@
 Facter.add('cluster') do
   setcode do
-    if system('/usr/sbin/gnt-cluster getmaster')
+    if system('/usr/sbin/gnt-cluster getmaster >/dev/null')
       require 'json'
       config = '/var/lib/ganeti/config.data'
       if FileTest.exist?(config)