diff --git a/app/controllers/products_controller.rb b/app/controllers/products_controller.rb index 9373692f6..6f6a0f628 100644 --- a/app/controllers/products_controller.rb +++ b/app/controllers/products_controller.rb @@ -28,7 +28,7 @@ class ProductsController < ApplicationController def build flash[:notice] = t('flash.product.build_started') - ProductBuilder.create_product @product.id, '/var/rosa', @product.ks, @product.menu, @product.build, @product.counter + ProductBuilder.create_product @product.id, '/var/rosa', @product.ks, @product.menu, @product.build, @product.counter, [] redirect_to :action => :show end diff --git a/lib/product_builder.rb b/lib/product_builder.rb index c756c16c4..fa334a294 100644 --- a/lib/product_builder.rb +++ b/lib/product_builder.rb @@ -9,7 +9,7 @@ class ProductBuilder @@client ||= XMLRPC::Client.new3(:host => APP_CONFIG['product_builder_ip'], :port => APP_CONFIG['product_builder_port'], :path => APP_CONFIG['product_builder_path']) end - def self.create_product product_id, path, kstemplate, menuxml, build, counter - self.client.call('create_product', product_id, path, kstemplate, menuxml, build, counter) + def self.create_product product_id, path, kstemplate, menuxml, build, counter, packages + self.client.call('create_product', product_id, path, kstemplate, menuxml, build, counter, packages) end end