diff options
author | josb <josb@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-08 16:25:18 +0000 |
---|---|---|
committer | josb <josb@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-08 16:25:18 +0000 |
commit | 73df97386426a830798efeb71c771090f88ba601 (patch) | |
tree | 04cabadf4a0413d16887ac4e004c00be998f240b | |
parent | 568db0b490c778ca20c6deb6fe4a3eeab71226b8 (diff) | |
download | puppet-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-x | bin/ralsh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |