M #-: Improve error messages for onezone serversync (#4174)

(cherry picked from commit af05910b1a)
This commit is contained in:
Pavel Czerný authored and Ruben S. Montero committed 2026-04-27 09:58:12 +02:00
1 parent ae90960d91
commit 05ffce136a
1 file changed
+7 -1
+7 -1
View File
@@ -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)