app/lib/actions/candlepin/consumer/destroy.rb in katello-2.4.5 vs app/lib/actions/candlepin/consumer/destroy.rb in katello-3.0.0.rc1
- old
+ new
@@ -6,9 +6,11 @@
param :uuid
end
def run
::Katello::Resources::Candlepin::Consumer.destroy(input[:uuid])
+ rescue RestClient::Gone
+ Rails.logger.error(_("Consumer %s has already been removed") % input[:uuid])
end
end
end
end
end