#!/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
require 'trollop'
require './lib/salvage_collection'
+include SalvageCollection
opts = Trollop::options do
banner ''
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