1
0
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:
Tino Vazquez 2019-02-08 18:17:02 +01:00
parent faabaacd04
commit 477e7fb9b0
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE
3 changed files with 8 additions and 4 deletions

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,

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
#

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)