mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +03:00
L #-: Disable new rubocop checks
Lint vCenter related files
(cherry picked from commit cf74695688
)
This commit is contained in:
parent
0ceef20753
commit
7a11baccbd
@ -748,6 +748,12 @@ Style/SwapValues:
|
||||
# LINT
|
||||
######
|
||||
|
||||
Lint/IneffectiveAccessModifier:
|
||||
Enabled: false
|
||||
|
||||
Lint/OrAssignmentToConstant:
|
||||
Enabled: false
|
||||
|
||||
Lint/ConstantDefinitionInBlock:
|
||||
Enabled: false
|
||||
|
||||
@ -908,6 +914,9 @@ Metrics/AbcSize:
|
||||
Metrics/MethodLength:
|
||||
Enabled: false
|
||||
|
||||
Naming/VariableName:
|
||||
Enabled: false
|
||||
|
||||
# uppercase constant mandatory
|
||||
Naming/ConstantName:
|
||||
Enabled: true
|
||||
|
@ -272,7 +272,7 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
vi_client,
|
||||
options[:object])
|
||||
|
||||
if options[:object] == "networks" && !args.first.nil?
|
||||
if options[:object] == 'networks' && !args.first.nil?
|
||||
indexes = args.first
|
||||
else
|
||||
importer.retrieve_resources(helper.parse_opts(options))
|
||||
|
@ -64,7 +64,7 @@ require 'nsx_driver'
|
||||
def modified?(template)
|
||||
template_xml = Nokogiri::XML(template)
|
||||
action = template_xml.xpath('//TEMPLATE/NIC[ATTACH="YES"]')
|
||||
action.empty? ? false : true
|
||||
!action.empty?
|
||||
end
|
||||
|
||||
template = Base64.decode64(STDIN.read)
|
||||
|
@ -64,7 +64,7 @@ require 'nsx_driver'
|
||||
def modified?(template)
|
||||
template_xml = Nokogiri::XML(template)
|
||||
action = template_xml.xpath('//TEMPLATE/NIC[ATTACH="YES"]')
|
||||
action.empty? ? false : true
|
||||
!action.empty?
|
||||
end
|
||||
|
||||
template = Base64.decode64(STDIN.read)
|
||||
|
@ -64,7 +64,7 @@ require 'nsx_driver'
|
||||
def modified?(template)
|
||||
template_xml = Nokogiri::XML(template)
|
||||
action = template_xml.xpath('//TEMPLATE/NIC[ATTACH="YES"]')
|
||||
action.empty? ? false : true
|
||||
!action.empty?
|
||||
end
|
||||
|
||||
template = Base64.decode64(STDIN.read)
|
||||
|
Loading…
Reference in New Issue
Block a user