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:
parent
23e03be0a1
commit
f9fd4ebf7d
@ -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'
|
||||
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user