diff --git a/app/models/product_build_list.rb b/app/models/product_build_list.rb index cae1b3bba..24ee0afab 100644 --- a/app/models/product_build_list.rb +++ b/app/models/product_build_list.rb @@ -40,7 +40,7 @@ class ProductBuildList < ActiveRecord::Base end def xml_delete_iso_container - result = ProductBuilder.delete_iso_container platform.name, id + result = ProductBuilder.delete_iso_container self if result == ProductBuilder::SUCCESS return true else diff --git a/lib/product_builder.rb b/lib/product_builder.rb index c774de089..a845f2dda 100644 --- a/lib/product_builder.rb +++ b/lib/product_builder.rb @@ -15,7 +15,7 @@ class ProductBuilder pbl.product.counter, [], pbl.product.tar.exists? ? "#{pbl.base_url}#{pbl.product.tar.url}" : '') end - def self.delete_iso_container(plname, id) - self.client(pbl.product.platform.distrib_type).call('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', pbl.product.platform.name, pbl.id.to_s) end end