X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e513251f7b0f6acdc0c0d6df5792c18358030221..a524fabd054d2b923eceb575de95674caca58e85:/services/api/script/salvage_collection.rb diff --git a/services/api/script/salvage_collection.rb b/services/api/script/salvage_collection.rb index 3212d8862d..75b02e5767 100755 --- a/services/api/script/salvage_collection.rb +++ b/services/api/script/salvage_collection.rb @@ -1,4 +1,7 @@ #!/usr/bin/env ruby +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 # Take two input parameters: a collection uuid and reason # Get "src_collection" with the given uuid @@ -12,6 +15,7 @@ require 'trollop' require './lib/salvage_collection' +include SalvageCollection opts = Trollop::options do banner '' @@ -23,9 +27,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