mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
L #-: disable SuppressedException
This commit is contained in:
2 files changed
+6
-2
No files matched your search
@@ -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'
|
||||
|
||||
|
||||
Reference in new issue
Block a user