1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

L #-: Update for rubocop 0.91.0

This commit is contained in:
Tino Vazquez 2020-09-15 13:44:42 +02:00
parent 3ea67d3645
commit 4afc1db028
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE
2 changed files with 11 additions and 12 deletions

View File

@ -727,6 +727,9 @@ Style/GlobalStdStream:
# LINT
######
Lint/ConstantDefinitionInBlock:
Enabled: false
Lint/FloatComparison:
Enabled: false

View File

@ -1126,29 +1126,25 @@ module VCenterDriver
case nr[:action]
when :update_dpg
begin
nr[:dpg]
.ReconfigureDVPortgroup_Task(
:spec => nr[:spec]
).wait_for_completion
nr[:dpg].ReconfigureDVPortgroup_Task(:spec => nr[:spec])
.wait_for_completion
rescue StandardError => e
raise "A rollback operation for distributed \
port group #{nr[:name]} could not \
be performed. Reason: #{e.message}"
end
end
when :update_dvs
begin
nr[:dvs]
.ReconfigureDvs_Task(
:spec => nr[:spec]
).wait_for_completion
nr[:dvs].ReconfigureDvs_Task(:spec => nr[:spec])
.wait_for_completion
rescue StandardError => e
raise "A rollback operation for distributed\
standard switch #{nr[:name]} could \
not be performed. Reason: #{e.message}"
end
end
when :delete_dvs
begin
nr[:dvs].Destroy_Task.wait_for_completion
nr[:dvs].Destroy_Task.wait_for_completion
rescue RbVmomi::VIM::ResourceInUse
next # Ignore if switch in use
rescue RbVmomi::VIM::NotFound
@ -1157,7 +1153,7 @@ module VCenterDriver
raise "A rollback operation \
for standard switch #{nr[:name]} \
could not be performed. Reason: #{e.message}"
end
end
when :delete_dpg
begin
nr[:dpg].Destroy_Task.wait_for_completion