mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-18 02:50:09 +03:00
M #-: auto for dummy monitoring. Checks
This commit is contained in:
parent
2c19a586d0
commit
e28f5d8d01
@ -170,10 +170,14 @@ begin
|
|||||||
hostid = config.elements['HOST_ID'].text.to_s
|
hostid = config.elements['HOST_ID'].text.to_s
|
||||||
|
|
||||||
if host == 'auto'
|
if host == 'auto'
|
||||||
if local? hyperv
|
if local? hyperv || hyperv == 'dummy'
|
||||||
host = '127.0.0.1'
|
host = '127.0.0.1'
|
||||||
else
|
else
|
||||||
host = ENV['SSH_CLIENT'].split.first
|
begin
|
||||||
|
host = ENV['SSH_CLIENT'].split.first
|
||||||
|
rescue
|
||||||
|
host = ''
|
||||||
|
end
|
||||||
|
|
||||||
if host.to_s.empty?
|
if host.to_s.empty?
|
||||||
puts 'NETWORK/MONITOR_ADDRESS is "auto", but SSH_CLIENT unknown'
|
puts 'NETWORK/MONITOR_ADDRESS is "auto", but SSH_CLIENT unknown'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user