Merge branch '11185-wb-disable-reuse'
[arvados.git] / services / api / script / salvage_collection.rb
index 3212d8862d218fdc39b3f4bbe087297f6f1934bb..7ef98bb7c8571ec8a6f64f4eb4a8906d25c52361 100755 (executable)
@@ -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