mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-03 02:28:46 +09:00
M #-: Improve error messages for onezone serversync (#4174)
(cherry picked from commit af05910b1a)
This commit is contained in:
1 parent
ae90960d91
commit
05ffce136a
1 file changed
+7
-1
@@ -64,7 +64,7 @@ class Replicator
|
||||
@l_fed_elements = { :raw => @l_config }
|
||||
|
||||
if OpenNebula.is_error?(@l_config)
|
||||
STDERR.puts 'Unable to read OpenNebula configuration. ' \
|
||||
STDERR.puts 'Unable to read local OpenNebula configuration. ' \
|
||||
'Is OpenNebula running?'
|
||||
exit(-1)
|
||||
end
|
||||
@@ -81,6 +81,12 @@ class Replicator
|
||||
@r_config_elements = { :raw => @r_config }
|
||||
@r_fed_elements = { :raw => @r_config }
|
||||
|
||||
if OpenNebula.is_error?(@r_config)
|
||||
STDERR.puts 'Unable to read remote OpenNebula configuration. ' \
|
||||
"Is OpenNebula running on #{@remote_server}?"
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
fetch_db_config(@r_config_elements)
|
||||
fetch_fed_config(@r_fed_elements)
|
||||
|
||||
|
||||
Reference in new issue
Block a user