From 73df97386426a830798efeb71c771090f88ba601 Mon Sep 17 00:00:00 2001 From: josb Date: Tue, 8 May 2007 16:25:18 +0000 Subject: The result of .compact.join("\n") isn't assigned to anything. Fix. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2484 980ebf18-57e1-0310-9a29-db15c13687c0 --- bin/ralsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/ralsh b/bin/ralsh index 6f686cfc6..cdb0ab345 100755 --- a/bin/ralsh +++ b/bin/ralsh @@ -156,7 +156,7 @@ format = proc {|trans| trans.to_manifest } -if host +text = if host client = Puppet::Network::Client.resource.new(:Server => host, :Port => Puppet[:puppetport]) unless client.read_cert raise "client.read_cert failed" @@ -172,9 +172,9 @@ if host rescue Puppet::Network::XMLRPCClientError => exc raise "client.list(#{type}) failed: #{exc.message}" end - text = transbucket.sort { |a,b| a.name <=> b.name }.collect(&format) + transbucket.sort { |a,b| a.name <=> b.name }.collect(&format) else - text = typeobj.list.collect do |obj| + typeobj.list.collect do |obj| next if ARGV.length > 0 and ! ARGV.include? obj.name trans = obj.to_trans(true) format.call(trans) -- cgit