]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/rm_dummy_runner.rb
Don't fail if the source user doesn't exist during an AgendavMv.
[mailshears.git] / lib / rm / rm_dummy_runner.rb
index 54a8969bcc6925d5c55590b0a537e2367a66846d..2b1f14d66af40e91514aad00fb21a0f6d87596d2 100644 (file)
@@ -27,14 +27,8 @@ class RmDummyRunner
   def run(cfg, plugin, *targets)
     targets.each do |target|
       target_description = plugin.describe(target)
-      msg =  "Would remove #{target.class.to_s().downcase()} #{target}"
-
-      # Only append the extra description if it's useful.
-      if not target_description.nil? and
-         not target_description.empty? and
-         not target_description == target.to_s() then
-        msg += " (#{target_description})"
-      end
+      msg =  "Would remove #{target.class.to_s().downcase()} "
+      msg += add_description(target, target_description)
       msg += '.'
 
       report(plugin, msg)