Skip to content

Commit

Permalink
F OpenNebula#3440: Split line to avoid rubocop warning (OpenNebula#3906)
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Luis Moya Gonzalez authored and Tino Vázquez committed Nov 4, 2019
1 parent 8c086c7 commit 9e8faac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/vmm_mad/remotes/lib/nsx_driver/opaque_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ def initialize(nsx_client, ls_id = nil, tz_id = nil, ls_data = nil)
if ls_data
begin
@ls_id = new_logical_switch(ls_data)
# rubocop:disable Metrics/LineLength
rescue NSXDriver::NSXException::IncorrectResponseCodeError => e
# rubocop:enable Metrics/LineLength
rescue NSXDriver::NSXException::
IncorrectResponseCodeError => e
raise 'Opaque Network not created in ' \
"NSX Manager: #{e.message}"
end
Expand Down
5 changes: 2 additions & 3 deletions src/vmm_mad/remotes/lib/nsx_driver/virtual_wire.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ def initialize(nsx_client, ls_id = nil, tz_id = nil, ls_data = nil)
if ls_data
begin
@ls_id = new_logical_switch(ls_data, tz_id)
# rubocop:disable Metrics/LineLength
rescue NSXDriver::NSXException::IncorrectResponseCodeError => e
# rubocop:enable Metrics/LineLength
rescue NSXDriver::NSXException::
IncorrectResponseCodeError => e
raise 'VirtualWire not created in NSX Manager: ' \
"#{e.message}"
end
Expand Down

0 comments on commit 9e8faac

Please sign in to comment.