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

L #-: Adjust for rubocop 1.0.0

This commit is contained in:
Tino Vazquez 2020-10-28 12:56:18 +01:00
parent 7f75232bfb
commit 1fe138846f
No known key found for this signature in database
GPG Key ID: 14201E424D02047E
3 changed files with 15 additions and 3 deletions
share/linters
src
im_mad/remotes/node-probes.d
oca/ruby/opennebula

@ -567,6 +567,9 @@ Layout/SpaceAroundMethodCallOperator:
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/MultilineOperationIndentation:
Enabled: false
#######
# STYLE
#######
@ -722,6 +725,15 @@ Style/RedundantRegexpEscape:
Style/GlobalStdStream:
Enabled: False
Style/ClassEqualityComparison:
Enabled: False
Style/LineEndConcatenation:
Enabled: False
Style/MultilineIfModifier:
Enabled: False
######
# LINT
######

@ -68,12 +68,12 @@ class DSMonitor
def replica_usage(path)
rs = 0
o, _e, s = Open3.capture3("du -sh #{path}")
if s.exitstatus == 0 && !o.empty?
du_a = o.split
rs = du_a.first if du_a
end
'REPLICA_CACHE = "YES",' <<
"REPLICA_CACHE_SIZE = #{rs}," <<
"REPLICA_IMAGES = #{num_images(path)},"

@ -147,7 +147,7 @@ module OpenNebula::MarketPlaceAppExt
rc = ds.info
is_vcenter = !OpenNebula.is_error?(rc) &&
(ds['TEMPLATE/DRIVER'] == 'vcenter')
(ds['TEMPLATE/DRIVER'] == 'vcenter')
#---------------------------------------------------------------
# Allocate the image in OpenNebula