mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-07 17:17:41 +03:00
L #-: Linting for monitord-client.rb
This commit is contained in:
parent
ea6f2590d0
commit
bf1946fe76
@ -170,12 +170,12 @@ begin
|
||||
hostid = config.elements['HOST_ID'].text.to_s
|
||||
|
||||
if host == 'auto'
|
||||
if local? hyperv || hyperv == 'dummy'
|
||||
if local?(hyperv) || hyperv == 'dummy'
|
||||
host = '127.0.0.1'
|
||||
else
|
||||
begin
|
||||
host = ENV['SSH_CLIENT'].split.first
|
||||
rescue
|
||||
rescue StandardError
|
||||
host = ''
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user