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:
parent
e269d5d7a5
commit
dfee994096
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user