diff --git a/share/linters/.rubocop.yml b/share/linters/.rubocop.yml index d0b479f7ca..3ee4b03011 100644 --- a/share/linters/.rubocop.yml +++ b/share/linters/.rubocop.yml @@ -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 ###### diff --git a/src/im_mad/remotes/node-probes.d/monitor_ds.rb b/src/im_mad/remotes/node-probes.d/monitor_ds.rb index 256ce0e652..f16f1db330 100755 --- a/src/im_mad/remotes/node-probes.d/monitor_ds.rb +++ b/src/im_mad/remotes/node-probes.d/monitor_ds.rb @@ -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)}," diff --git a/src/oca/ruby/opennebula/marketplaceapp_ext.rb b/src/oca/ruby/opennebula/marketplaceapp_ext.rb index bebb2ef174..e9503af9db 100644 --- a/src/oca/ruby/opennebula/marketplaceapp_ext.rb +++ b/src/oca/ruby/opennebula/marketplaceapp_ext.rb @@ -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