X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/647c3bac741b56ce16c7e22ab2d462725a34198d..c3734153c799a79136683093c21f64a7f1fa4e80:/services/api/script/salvage_collection.rb diff --git a/services/api/script/salvage_collection.rb b/services/api/script/salvage_collection.rb index 3212d8862d..7ef98bb7c8 100755 --- a/services/api/script/salvage_collection.rb +++ b/services/api/script/salvage_collection.rb @@ -12,6 +12,7 @@ require 'trollop' require './lib/salvage_collection' +include SalvageCollection opts = Trollop::options do banner '' @@ -23,9 +24,4 @@ opts = Trollop::options do end # Salvage the collection with the given uuid -begin - SalvageCollection.salvage_collection opts.uuid, opts.reason -rescue => e - $stderr.puts "Error during arv-put" - exit 1 -end +SalvageCollection.salvage_collection opts.uuid, opts.reason