1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-08 05:57:23 +03:00

B #5993: Fix group creation on Alma9 (#2327)

This commit is contained in:
Frederick Borges 2022-10-27 16:35:04 +02:00 committed by GitHub
parent ceab1ed159
commit ac86c6c28f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,8 +47,7 @@ module OpenNebulaJSON
def parse_json_sym(json_str, root_element)
begin
parser = JSON.parser.new(json_str, {:symbolize_names => true})
hash = parser.parse
hash = JSON.parse(json_str, {:symbolize_names => true})
if hash.has_key?(root_element)
return hash[root_element]