1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature 3748: Add error message when a service cannot be retrieved

This commit is contained in:
Daniel Molina 2015-07-02 17:35:41 +02:00
parent 28f9d11969
commit 8b36ef0a09

View File

@ -37,9 +37,7 @@ class ServiceLCM
Log.error LOG_COMP, "Error retrieving the Service Pool: #{rc.message}"
else
srv_pool.each_xpath('DOCUMENT/ID') { |id|
service = srv_pool.get(id.to_i) { |service|
rc_get = srv_pool.get(id.to_i) { |service|
owner_client = @cloud_auth.client(service.owner_name)
service.replace_client(owner_client)
@ -150,7 +148,12 @@ class ServiceLCM
"Service #{service.id()} : #{rc.message}"
end
}
}
if OpenNebula.is_error?(rc_get)
Log.error LOG_COMP, "Error getting Service " <<
"#{id}: #{rc_get.message}"
end
}
end
sleep @sleep_time