Fix some minor linter issues

This commit is contained in:
Tino Vazquez committed 2019-02-08 18:17:02 +01:00
1 parent faabaacd04
commit 477e7fb9b0
3 files changed
+8 -4

No files matched your search

+3 -3
View File
@@ -212,12 +212,12 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
end
end
column :PROVIDER, "Host provider", :left, :size => 6 do |d|
column :PROVIDER, 'Host provider', :left, :size => 6 do |d|
d['TEMPLATE']['PM_MAD'].nil? ? '-' : d['TEMPLATE']['PM_MAD']
end
column :STAT, "Host status", :left, :size => 6 do |d|
OneHostHelper.state_to_str(d["STATE"])
column :STAT, 'Host status', :left, :size => 6 do |d|
OneHostHelper.state_to_str(d['STATE'])
end
default :ID, :NAME, :CLUSTER, :TVM,
+2
View File
@@ -22,7 +22,9 @@ module OneProvision
class << self
# Mutex to synchronize console output
# rubocop:disable Style/ClassVars
@@mutex = Mutex.new
# rubocop:enable Style/ClassVars
# Retry the operation in case of failure
#
+3 -1
View File
@@ -21,8 +21,10 @@ module OneProvision
# Host
class Host < Resource
# Mutex to syncrhonize delete operations
# Mutex to synchronize delete operations
# rubocop:disable Style/ClassVars
@@mutex = Mutex.new
# rubocop:enable Style/ClassVars
# Class constructor
def initialize(id = nil)