summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjosb <josb@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-08 16:25:18 +0000
committerjosb <josb@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-08 16:25:18 +0000
commit73df97386426a830798efeb71c771090f88ba601 (patch)
tree04cabadf4a0413d16887ac4e004c00be998f240b
parent568db0b490c778ca20c6deb6fe4a3eeab71226b8 (diff)
downloadpuppet-73df97386426a830798efeb71c771090f88ba601.tar.gz
puppet-73df97386426a830798efeb71c771090f88ba601.tar.xz
puppet-73df97386426a830798efeb71c771090f88ba601.zip
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
-rwxr-xr-xbin/ralsh6
1 files changed, 3 insertions, 3 deletions
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)