Commit 3df40bef authored by Samir Noir's avatar Samir Noir 🧀
Browse files

Fix missing disk resources on API status.

If the disk resource type doesn't exist in OAR's database, we add it to
the possible types so we can have it (empty) im the returned JSON.
Some applications need the disks key, even empty.
parent 56c3cf64
Pipeline #177526 waiting for manual action with stages
in 21 minutes and 35 seconds
......@@ -48,7 +48,10 @@ class SitesController < ResourcesController
# Select the possible resources type from database. In disk case, even if
# it doesn't exists we want it in the result (as an empty Hash value).
rtypes ={ |t| t.type }
rtypes.push('disk') unless rtypes.include?('disk')
expected_rtypes = []
rtypes.each do |oar_type|
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment