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:
parent
55c08f71db
commit
4bea6db969
@ -797,6 +797,9 @@ Style/RedundantLineContinuation:
|
||||
Style/RedundantFilterChain:
|
||||
Enabled: false
|
||||
|
||||
Style/ReturnNilInPredicateMethodDefinition:
|
||||
Enabled: false
|
||||
|
||||
######
|
||||
# LINT
|
||||
######
|
||||
|
@ -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'
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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
|
||||
|
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user