[Refs #221] Fix xml-rpc call

This commit is contained in:
Vladimir Sharshov 2012-02-29 16:00:02 +04:00
parent 6e15ee3e96
commit b20c533e6b
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ class ProductBuildList < ActiveRecord::Base
end end
def xml_delete_iso_container def xml_delete_iso_container
result = ProductBuilder.delete_iso_container platform.name, id result = ProductBuilder.delete_iso_container self
if result == ProductBuilder::SUCCESS if result == ProductBuilder::SUCCESS
return true return true
else else

View File

@ -15,7 +15,7 @@ class ProductBuilder
pbl.product.counter, [], pbl.product.tar.exists? ? "#{pbl.base_url}#{pbl.product.tar.url}" : '') pbl.product.counter, [], pbl.product.tar.exists? ? "#{pbl.base_url}#{pbl.product.tar.url}" : '')
end end
def self.delete_iso_container(plname, id) def self.delete_iso_container pbl # product_build_list
self.client(pbl.product.platform.distrib_type).call('delete_iso_container', plname, id) self.client(pbl.product.platform.distrib_type).call('delete_iso_container', pbl.product.platform.name, pbl.id.to_s)
end end
end end