1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

L #-: Linting firecracker and vCenter vm monitor

Also add 0.83.0 new cops to conf file
This commit is contained in:
Tino Vazquez 2020-05-18 13:22:57 +02:00
parent e269d5d7a5
commit dfee994096
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE
3 changed files with 8 additions and 4 deletions

View File

@ -596,8 +596,6 @@ Layout/IndentationWidth:
Layout/SpaceInsideBlockBraces:
SpaceBeforeBlockParameters: false
###
# Align the end keyword
Layout/EndAlignment:
AutoCorrect: true
@ -622,7 +620,8 @@ Layout/SpaceAroundOperators:
Layout/SpaceAroundMethodCallOperator:
Enabled: true
###
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
#######
# STYLE
@ -734,6 +733,9 @@ Style/RedundantBegin:
Style/ExponentialNotation:
Enabled: true
Style/SlicingWithRange:
Enabled: true
######
# LINT

View File

@ -436,7 +436,8 @@ module DomainList
mon_s = ''
@vms.each do |_uuid, vm|
mon_s << "VM = [ ID=\"#{vm[:id]}\", DEPLOY_ID=\"#{vm[:deploy_id]}\","
mon_s << "VM = [ ID=\"#{vm[:id]}\", "
mon_s << "DEPLOY_ID=\"#{vm[:deploy_id]}\","
mon_s << " MONITOR=\"#{vm.to_monitor}\"]\n"
end

View File

@ -464,6 +464,7 @@ module VirtualMachineMonitor
info_disks.each do |disk|
next if disk[1].no_exists?
str_info << "DISK_#{disk[0]}_ACTUAL_PATH=\"[" <<
disk[1].ds.name << '] ' << disk[1].path << '" ' << "\n"
end