mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
bug #3309: OpenNebula.systems support does not work with an empty issue list
This commit is contained in:
1 parent
40626344fc
commit
f495cdf488
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user