Code Review
/
packages
/
precise
/
mcollective.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update version according to OSCI-856
[packages/precise/mcollective.git]
/
lib
/
mcollective
/
rpc
/
reply.rb
diff --git
a/lib/mcollective/rpc/reply.rb
b/lib/mcollective/rpc/reply.rb
index 574be55ef6c202a3dba6dcd9a13d22a478cfa334..0dc8b5a4dde22b7786e3f04793d284fcc8002ec9 100644
(file)
--- a/
lib/mcollective/rpc/reply.rb
+++ b/
lib/mcollective/rpc/reply.rb
@@
-26,7
+26,9
@@
module MCollective
interface = @ddl.action_interface(@action)
interface[:output].keys.each do |output|
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
end
end