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:
parent
7f75232bfb
commit
1fe138846f
share/linters
src
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user