1
0
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:
Tino Vazquez 2020-05-26 18:41:41 +02:00
parent ea6f2590d0
commit bf1946fe76
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -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