Update code from https://github.com/dmi-try/marionette-collective
[packages/precise/mcollective.git] / lib / mcollective / data / base.rb
index 3ff8213d6b6cc93b576d8c241be5e19b6250439e..fdfecee52fd02c2e4c216da99d78285a44bbaf23 100644 (file)
@@ -13,7 +13,7 @@ module MCollective
       def initialize
         @name = self.class.to_s.split("::").last.downcase
         @ddl = DDL.new(@name, :data)
-        @result = Result.new
+        @result = Result.new(@ddl.dataquery_interface[:output])
         @timeout = @ddl.meta[:timeout] || 1
 
         startup_hook