mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bug #3309: OpenNebula.systems support does not work with an empty issue list
(cherry picked from commit f495cdf488a9cc5cfb2e717af107fedd1d95146c)
This commit is contained in:
parent
d3bd5f7fab
commit
21eb1ed893
@ -122,10 +122,13 @@ get '/support/request' do
|
||||
pending_requests = 0
|
||||
one_zrequests = {
|
||||
"REQUEST_POOL" => {
|
||||
"REQUEST" => []
|
||||
}
|
||||
}
|
||||
|
||||
if zrequests.size > 0
|
||||
one_zrequests["REQUEST_POOL"]["REQUEST"] = []
|
||||
end
|
||||
|
||||
zrequests.each { |zrequest|
|
||||
if zrequest.status == "pending"
|
||||
pending_requests += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user