mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
M #-: auto for dummy monitoring. Checks
This commit is contained in:
1 file changed
+6
-2
@@ -170,10 +170,14 @@ begin
|
||||
hostid = config.elements['HOST_ID'].text.to_s
|
||||
|
||||
if host == 'auto'
|
||||
if local? hyperv
|
||||
if local? hyperv || hyperv == 'dummy'
|
||||
host = '127.0.0.1'
|
||||
else
|
||||
host = ENV['SSH_CLIENT'].split.first
|
||||
begin
|
||||
host = ENV['SSH_CLIENT'].split.first
|
||||
rescue
|
||||
host = ''
|
||||
end
|
||||
|
||||
if host.to_s.empty?
|
||||
puts 'NETWORK/MONITOR_ADDRESS is "auto", but SSH_CLIENT unknown'
|
||||
|
||||
Reference in new issue
Block a user