Update version according to OSCI-856
[packages/precise/mcollective.git] / lib / mcollective / rpc / reply.rb
index 574be55ef6c202a3dba6dcd9a13d22a478cfa334..0dc8b5a4dde22b7786e3f04793d284fcc8002ec9 100644 (file)
@@ -26,7 +26,9 @@ module MCollective
         interface = @ddl.action_interface(@action)
 
         interface[:output].keys.each do |output|
-          @data[output] = interface[:output][output][:default]
+          # must deep clone this data to avoid accidental updates of the DDL in cases where the
+          # default is for example a string and someone does << on it
+          @data[output] = Marshal.load(Marshal.dump(interface[:output][output].fetch(:default, nil)))
         end
       end