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:
parent
3ea67d3645
commit
4afc1db028
@ -727,6 +727,9 @@ Style/GlobalStdStream:
|
||||
# LINT
|
||||
######
|
||||
|
||||
Lint/ConstantDefinitionInBlock:
|
||||
Enabled: false
|
||||
|
||||
Lint/FloatComparison:
|
||||
Enabled: false
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user