From: Martin Zobel-Helas Date: Sun, 1 Dec 2013 10:44:45 +0000 (+0100) Subject: try to get node names this way X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=39cb899d8cda11d87a39fa239493fdaa639c94d2;hp=16e805fb96e2d2c2efa3aa8d13bde60d8f664a23;p=mirror%2Fdsa-puppet.git try to get node names this way Signed-off-by: Martin Zobel-Helas --- diff --git a/modules/debian-org/lib/facter/cluster.rb b/modules/debian-org/lib/facter/cluster.rb index fea14355f..695bfe60d 100644 --- a/modules/debian-org/lib/facter/cluster.rb +++ b/modules/debian-org/lib/facter/cluster.rb @@ -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