1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

L #-: Linting for rubocop 1.53.0

(cherry picked from commit d6bbf71b332a05ec68bc86cbc451964a78f115f0)
This commit is contained in:
Tino Vázquez 2023-06-26 12:14:44 +02:00
parent 55c08f71db
commit 4bea6db969
No known key found for this signature in database
GPG Key ID: 14201E424D02047E
4 changed files with 7 additions and 4 deletions

View File

@ -797,6 +797,9 @@ Style/RedundantLineContinuation:
Style/RedundantFilterChain:
Enabled: false
Style/ReturnNilInPredicateMethodDefinition:
Enabled: false
######
# LINT
######

View File

@ -55,8 +55,8 @@ $LOAD_PATH << RUBY_LIB_LOCATION
require 'yaml'
require 'rexml/document'
require_relative './vcenter_cluster'
require_relative './monitord_client'
require_relative 'vcenter_cluster'
require_relative 'monitord_client'
#---------------------------------------------------------------------------
#

View File

@ -189,7 +189,7 @@ module DriverExecHelper
cfg=file.read
end
cfg.split(/\n/).each do |line|
cfg.split("\n").each do |line|
m=line.match(/^([^=]+)=(.*)$/)
next unless m

View File

@ -91,7 +91,7 @@ module NSXDriver
.get(url)
.xpath(NSXConstants::NSXV_LS_XPATH)
virtualwires.each do |virtualwire|
lsname_arr = name.split(/-sid-/)
lsname_arr = name.split('-sid-')
lsname = lsname_arr[-1].split('-', 2)[-1]
lsid = lsname_arr[0].split(/vxw-dvs-\w.-/)[-1]
if virtualwire.xpath('name').text == lsname &&