mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
Fix some minor linter issues
This commit is contained in:
3 files changed
+8
-4
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user