try to get node names this way
authorMartin Zobel-Helas <zobel@debian.org>
Sun, 1 Dec 2013 10:44:45 +0000 (11:44 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sun, 1 Dec 2013 10:44:45 +0000 (11:44 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
modules/debian-org/lib/facter/cluster.rb

index fea1435..695bfe6 100644 (file)
@@ -10,7 +10,7 @@ if FileTest.exist?('/usr/sbin/gnt-cluster') and FileTest.exist?('/var/lib/ganeti
                                end
                                Facter.add('cluster_nodes') do
                                setcode do
-                                       yaml['nodes'].keys.join(' ')
+                                       yaml['nodes']['name']
                                end
                        end
                end