1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

L #-: disable SuppressedException

This commit is contained in:
Ruben S. Montero 2020-05-11 13:37:52 +02:00
parent 23e03be0a1
commit f9fd4ebf7d
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
2 changed files with 6 additions and 2 deletions

View File

@ -23,10 +23,12 @@ require 'fileutils'
class DSMonitor
def initialize(config)
# rubocop:disable Lint/SuppressedException
begin
@ds_location = config.elements['DATASTORE_LOCATION'].text.to_s
rescue
rescue StandardError
end
# rubocop:enable Lint/SuppressedException
@ds_location ||= '/var/lib/one/datastores'

View File

@ -27,10 +27,12 @@ rescue StandardError => e
exit(-1)
end
# rubocop:disable Lint/SuppressedException
begin
ds_location = config.elements['DATASTORE_LOCATION'].text.to_s
rescue
rescue StandardError
end
# rubocop:enable Lint/SuppressedException
ds_location ||= '/var/lib/one/datastores'