mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Fix some minor linter issues
This commit is contained in:
parent
faabaacd04
commit
477e7fb9b0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user